What is this PHP_MYSQL_Errors?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrkenobi
Forum Newbie
Posts: 1
Joined: Wed Mar 21, 2018 4:10 am

What is this PHP_MYSQL_Errors?

Post by mrkenobi »

Code: Select all

[Tue Mar 20 08:33:36.550014 2018] [:error] [pid 3749] [client 127.0.0.1:60838] PHP Warning:  mysql_connect(): Access denied for user 'apache'@'localhost' (using password: NO) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.581438 2018] [:error] [pid 3746] [client 127.0.0.1:40352] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.584246 2018] [:error] [pid 3749] [client 127.0.0.1:40356] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.588540 2018] [:error] [pid 3750] [client 127.0.0.1:40362] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.593748 2018] [:error] [pid 3748] [client 127.0.0.1:40366] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.601485 2018] [:error] [pid 3746] [client 127.0.0.1:40370] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.604881 2018] [:error] [pid 3747] [client 127.0.0.1:40372] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
[Tue Mar 20 08:19:55.607942 2018] [:error] [pid 3749] [client 127.0.0.1:40376] PHP Warning:  mysql_connect(): Can't connect to MySQL server on '127.0.0.1' (111) in /var/sentora/hostdata/zadmin/public_html/gps_technoware_in/track/server/s_init.php on line 36
$ms = mysql_connect($gsValues['DB_HOSTNAME'], $gsValues['DB_USERNAME'],
$gsValues['DB_PASSWORD']); if (!$ms) { echo "Error connecting to database."; die; }

Please help me, I try many times but don't know how to fix this
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: What is this PHP_MYSQL_Errors?

Post by Christopher »

You need to have a valid username and password for mysql. That is the first error. All the other errors are because access was denied.
(#10850)
Post Reply