errors after upgrading from MySQL to MariaDB

Grafix

New member
Joined
Feb 19, 2020
Messages
6
Hi

i made a mistake and did this upgrade
How can I delete (FULL) both databases engine and only MySQL Install again ? No data loss
i got a lot of commands, But I didn't succeed

My OS : Centos 7

Thank you for helping
 
Hi zEitEr

after performing step 2:
Install the new desired version, say mariadb 10.4 or mysql 5.7, for example.

mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Restarting MySQL.
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
Installation completed.


Thanks
 
And what You see in "systemctl status mysqld.service" and "journalctl -xe" ?
 
And what You see in "systemctl status mysqld.service" and "journalctl -xe" ?

mysqld.service - MySQL database server
Loaded: loaded (/etc/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-02-19 08:43:06 EST; 42s ago
Process: 1593 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=1/FAILURE)
Main PID: 1593 (code=exited, status=1/FAILURE)

Feb 19 08:43:06 server.domain.comsystemd[1]: Started MySQL database server.
Feb 19 08:43:06 server.domain.com mysqld_safe[1593]: 200219 08:43:06 mysqld_safe Logging to '/va...'.
Feb 19 08:43:06 server.domain.com mysqld_safe[1593]: 200219 08:43:06 mysqld_safe Directory '/usr...s.
Feb 19 08:43:06 server.domain.com systemd[1]: mysqld.service: main process exited, code=exited,...URE
Feb 19 08:43:06 server.domain.com systemd[1]: Unit mysqld.service entered failed state.
Feb 19 08:43:06 server.domain.com systemd[1]: mysqld.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
 
And Mysql error.log?

could not save log
after executing the ./build mysql command
this error is display:

Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Giving mysqld a few seconds to start up...
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Error: Failed while fetching Server version! Could be due to unauthorized access.
FATAL ERROR: Upgrade failed
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Restarting MySQL.
Installation completed.
 
What do you see
Code:
cat /var/lib/mysql/$(hostname -f).err | tail -50

200219 10:09:07 mysqld_safe Logging to '/var/lib/mysql/server.mydomain.com.err'.
200219 10:09:07 mysqld_safe Directory '/usr/local/mysql/data' for UNIX socket file don't exists.
200219 10:10:02 mysqld_safe Logging to '/var/lib/mysql/server.mydomain.com.err'.
200219 10:10:02 mysqld_safe Directory '/usr/local/mysql/data' for UNIX socket file don't exists.
200219 10:10:07 mysqld_safe Logging to '/var/lib/mysql/server.mydomain.com.err'.
200219 10:10:07 mysqld_safe Directory '/usr/local/mysql/data' for UNIX socket file don't exists.
200219 10:10:07 mysqld_safe Logging to '/var/lib/mysql/server.mydomain.com.err'.
200219 10:11:01 mysqld_safe Directory '/usr/local/mysql/data' for UNIX socket file don't exists.
200219 10:10:07 mysqld_safe Logging to '/var/lib/mysql/server.mydomain.com.err'.
200219 10:11:06 mysqld_safe Directory '/usr/local/mysql/data' for UNIX socket file don't exists.
...
...

and many times repeated ..
 
On CentOS directory /usr/local/mysql/data is not used usually. Do you overwrite datadir in MySQL configs?
You might create it or simlink /var/lib/mysql/ to the folder.
 
On CentOS directory /usr/local/mysql/data is not used usually. Do you overwrite datadir in MySQL configs?
You might create it or simlink /var/lib/mysql/ to the folder.

No
This path does not exist
 
Back
Top