Hi Experts
I have created PHP page with Mysql connection..Please tell me how to upload that to server. And what to use instead of this line mysql_connect('localhost'). localhost should be replaced with what address? Please help
Navaneeth
How can i Upload MYSQL Database
Moderator: General Moderators
You should upload your file with FTP, or however you connect to your host
localhost should be fine on most hosts, you might also want to add in your username and password if your host requires one
http://www.php.net/mysql_connect
localhost should be fine on most hosts, you might also want to add in your username and password if your host requires one
http://www.php.net/mysql_connect
Well, the most simple way to upload the files is ftp.
and as for connecting to the database, localhost should be fine (Depending on your server setup)
If localhost doesn't work, or if you are trying to connect to another computer use an IP address.
Note: If you are using an IP address the database may (should) require authentication from the server that is trying to connect.
and as for connecting to the database, localhost should be fine (Depending on your server setup)
If localhost doesn't work, or if you are trying to connect to another computer use an IP address.
Note: If you are using an IP address the database may (should) require authentication from the server that is trying to connect.