[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.1

Recover MySQL installation

Asked by mrgordonz in MySQL Server, CentOS, PHP Scripting Language

Tags: php, mysql, centos, repair

I am in the process of setting up a Moodle server, and I have managed to screw up the installation of MySQL.

The environment is as follows:

CentOS 5.3
Apache 2.2
PHP 5.3
MySQL 5.1

For the most part everything was working, except that on one forum I had read that for security reasons I should create a new MySQL admin user with all privileges, and then drop the root user.  So I did this.  But then the new user didn't seem to have global privileges.  I could create a new user and a database of the same name, but I would get an error saying that access to the new database was denied to the admin user.  So I decided to just take MySQL back to a fresh installation.  I uninstalled MySQL ($sudo yum remove mysql), and then re-installed it.  And now it is royally screwed.  Nothing seems to work anymore.

The installation of MySQL completes without any errors.  But when I try the following command:

$sudo /etc/init.d/mysqld start

I get the following error:

Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED]

If I simply execute:

$mysql

I get this error:

mysql: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

When I try to check the version of PHP like so:

$php -v

I get the following errors:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysqli.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_mysql.so' - /usr/lib/php/modules/pdo_mysql.so: undefined symbol: mysql_get_server_version in Unknown on line 0
PHP 5.3.0 (cli) (built: Jul 19 2009 17:55:08)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

I installed phpMyAdmin, and when I try to connect to MySQL via phpMyAdmin I get this wrror:

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

I am going nuts trying to figure out if the problem is with MySQL or PHP or what.  I have spent many hours trawling through forums and blogs trying to find something which will lead me in the right direction, but so far I have had no success.

Please note - my Linux skills are very rudimentary; I am gradually becoming more comfortable with server admin via a terminal window, but there is much I don't know.  I say this because I don't want Experts to assume I have a high level of knowledge regarding administering a Linux server.

Cheers,

Paul
[+][-]09/16/09 12:46 PM, ID: 25349334Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/16/09 12:54 PM, ID: 25349417Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/16/09 05:40 PM, ID: 25351865Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/09 08:25 AM, ID: 25357244Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: MySQL Server, CentOS, PHP Scripting Language
Tags: php, mysql, centos, repair
Sign Up Now!
Solution Provided By: Mike_The_Spike
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625