Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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?

share|improve this answer
    
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

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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