PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Aug 18, 2018 11:55 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Mar 21, 2018 4:16 am 
Offline
Forum Newbie

Joined: Wed Mar 21, 2018 4:10 am
Posts: 1
Syntax: [ Download ] [ Hide ]
[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


Top
 Profile  
 
PostPosted: Wed Mar 21, 2018 11:23 am 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13573
Location: New York, NY, US
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group