newbie question
| From: | shawn | Date: | Mon, 16 Oct 2000 20:38:49 +0000 |
| Subject: | newbie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20456@lists.php.net to get a copy of this message | ||
Hello,
I have a site that uses a database at "localhost", and am getting ready
to move it to a dedicated MySQL server. The script to access it right
now is:
mysql_pconnect("localhost","username","password")
or die("Unable to connect to SQL server");
mysql_select_db("database_db") or die("Unable to
select database");
When I move this database, will this work:
mysql_pconnect("db.database.com","username","password")
or die("Unable to connect to SQL server");
or do I need to do something drastic?
thanks in advance
shawn