Error while creating database (Errornumber 2002: "Can't connect to local MySQL server
Code:
$server = "localhost"; // often localhost
$username = "krystalklear"; // Your MySQL server username
$password = "password"; // Your MySQL server password
$database = ""; // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created.
$DBprefix = "ALS"; // the prefix for the tables in the database (can be left blank)
check with your host if localhost is indeed the database host. there are hosting providers that use seperate database servers, and there are certain control panels (for instance ensim) that require you to use 127.0.0.1 instead of localhost.
check with your host if localhost is indeed the database host. there are hosting providers that use seperate database servers, and there are certain control panels (for instance ensim) that require you to use 127.0.0.1 instead of localhost.
ok thank you, i checked the database section and it gave me
Host name: mysql5.secureserver.net
User namer: krystalklear
QUESTION:
What name servers do I use if I have a GoDaddy.com hosting account?
ANSWER:
GoDaddy.com's name servers are: WSC1.JOMAX.NET and WSC2.JOMAX.NET
these are used for DSN thingy !!
don't worry about them, they have nothing to do with MySQL !!
just change the server value into Mysql5.secureserver.net
PHP Code:
$server = "Mysql5.secureserver.net"; // often localhost
$username = "krystalklear"; // Your MySQL server username
$password = "password"; // Your MySQL server password
$database = ""; // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created.
$DBprefix = "ALS"; // the prefix for the tables in the database (can be left blank)
I think you will also need a port for this remote connection !
your host can help you more about it ..
__________________ PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
these are used for DSN thingy !!
don't worry about them, they have nothing to do with MySQL !!
just change the server value into Mysql5.secureserver.net
PHP Code:
$server = "Mysql5.secureserver.net"; // often localhost $username = "krystalklear"; // Your MySQL server username $password = "password"; // Your MySQL server password $database = ""; // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created. $DBprefix = "ALS"; // the prefix for the tables in the database (can be left blank)
I think you will also need a port for this remote connection !
your host can help you more about it ..
thank you, i e-mailed my host twice, but long weekend... so they won't be open this weekend
yes.. i changed it to what is above, and still getting the same error.
i guess i do need a port