Hello everyone. I'm trying to uplaod a game script i bought and i have to enter in my sql db access info. It says i need, <?php $user = 'enter here'; $pass = 'enter here'; $host = 'enter here'; $db = 'enter here'; @mysql_connect($host,$user,$pass); @mysql_select_db($db);?> Does anybody know how i can find the info that needs to go here? thanks.
Where you are setting up this script? On you local machine or on web hosting account? If you are on local machine then use any MySQL GUI to create a database, mysql username and password and then give that mysql user rights to the newly created database. And if you are setting it up on web host, go to your web hosting control panel and then create database, username/password and then give rights as i said above. If your MySQL script is on the same server where the PHP is running, then use localhost for $host otherwise provide the IP.
You might want to look at command line syntax to add new users http://dev.mysql.com/doc/refman/5.0/en/adding-users.html.