0

Had an issue with mysql on the server so decided to completely remove it via the following

sudo apt-get remove --purge mysql-server mysql-client mysql-common
rm -rf /var/lib/mysql
rm -rf /etc/mysql*

then the following to reinstall

apt-get install mysql-server mysql-client

After adding my the relevant DBs, tables & content I would have thought the websites would have resumed as normal. As it stands the page doesn't load but doesn't give any error message which made me think it might be messing with apache in some fashion.

But checking the apache error log doesn't show any errors, any ideas?

UPDATE

It appears i need to reinstall mysqli, just need to remember how I done it last time.

1

Are you using PHP? If so turn on error reporting

Is the webapp accessing the DB from a remote location or on the same server?

  • Think i've found the cause PHP Fatal error: Class 'mysqli' not found in .... – cosmicsafari Feb 13 '13 at 15:53
  • 1
    There you go. You need to apt-get install php-mysql or something similar, probably. – ceejayoz Feb 13 '13 at 15:57
  • Spot on, cheers. – cosmicsafari Feb 13 '13 at 15:58
0

You really haven't given us much information to go on. I would follow the basic troubleshooting steps.

  1. Make sure mysql is running
  2. Log into mysql with the username/password that the website would
  3. Check to ensure tables are created
  4. Look at applications connection string to see if you are connecting to a file or a port

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.