Today, I found that mysql, a database in the centos System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified.
Today, I found that mysql, a database in the centos System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified.
Today, I found that mysql, a database in the CentOS System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified .. I can't help but think about it later. There is no material to recompile and install it.
In accordance with the previous practice, I still choose to use the source code to edit and install the file. However, when I enter the database after installation, I am prompted that the file libmysqlclient. so.15 cannot be found. It should be a library file. Note:
[Root @ moodle mysql] # bin/mysql-u root-p
Bin/mysql: error while loading shared libraries: libmysqlclient. so.15: cannot open shared object file: No such file or directory
However, I used the find command to find libmysqlclient. so.15.0.0 and libmysqlclient. so.15 files in the database installation directory.
[Root @ moodle mysql] # find.-name libmysqlclient. so.15
./Lib/mysql/libmysqlclient. so.15
[Root @ moodle mysql] # find.-name libmysqlclient. so.15.0.0
./Lib/mysql/libmysqlclient. so.15.0.0
I think it may be because the system library/usr/lib/is associated, so I think I have tried a link operation.
[Root @ moodle mysql] # sudo ln-s/usr/local/mysql/lib/mysql/libmysqlclient. so.15/usr/lib/libmysqlclient. so.15
It's okay... But why is that? It seems that I have encountered this before. Source: exam 365
[Root @ moodle mysql] # bin/mysql-u root-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 2
Server version: 5.0.67-log Source distribution
Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.
Mysql>
,