mysql - How to identify and fix Lamp server which loaded website without database information -


when type in localhost loading webapp without database information.

no errors showing in apache2 error log. ran info.php test php, , loaded.

created user in phpmyadmin , connection workbench tested ok, , able forward engineer database.

what wrong? , how identify problem?

here's tried far (i'm newbie extreme):

sudo netstat -plunt | grep apache2 

tried check apache server, got this:

tcp6       0      0 :::80                   :::*                    listen      2808/apache2  

then typed this:

mysql -u root -p 

and got this:

welcome mysql monitor. commands end ; or \g. mysql connection id 2 server version: 5.7.14 mysql community server (gpl)

copyright (c) 2000, 2016, oracle and/or affiliates. rights reserved.

oracle registered trademark of oracle corporation and/or affiliates. other names may trademarks of respective owners.

type 'help;' or '\h' help. type '\c' clear current input statement.

i tried see if databases showing:

show databases; 

and see list including database want.

i dug syslog in var/log/syslog, , found this:

sep  2 20:48:01 name mysqld[12007]: 2016-09-03t03:48:01.270840z 0 [note] server hostname (bind-address): '*'; port: 3306 sep  2 20:48:01 name mysqld[12007]: 2016-09-03t03:48:01.270934z 0 [note] ipv6 available. sep  2 20:48:01 name mysqld[12007]: 2016-09-03t03:48:01.270951z 0 [note]   - '::' resolves '::'; sep  2 20:48:01 name mysqld[12007]: 2016-09-03t03:48:01.271052z 0 [note] server socket created on ip: '::'. 

is there wrong there mysql?


Comments