Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

cannot create system table MySQL(mariadb)

$
0
0
I am following this guide here https://en.opensuse.org/SDB:Linux_Apache_MySQL_PHP .
Apache has been successfully installed and works.
The service for mysql has been started, I know need to create user and system tables. So as root I have cd /bin and execued the command.
Code:

mysql_install_db --user=mysql
However I receive an error that it cannot retrieve a host and will only accept an IP.
Code:

linux-41ym:/bin # mysql_install_db --user=mysql
WARNING: The host 'linux-41ym.site' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MariaDB privileges !

If I am supposed to modify this command I am unsure how to the error refers me to this page https://mariadb.com/kb/en/installing...ql_install_db/

From the page i tried this commands to skip DNS lookup but receive this error.

Code:

linux-41ym:/bin # mysql_install_db --skip-name-resolve --user=mysql
WARNING: The host 'linux-41ym.site' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MariaDB privileges !
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
140402 21:55:20 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
140402 21:55:51 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/var/lib/mysql/aria_log_control'
140402 21:55:51 [ERROR] Plugin 'Aria' init function returned error.
140402 21:55:51 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
ERROR: 1017  Can't find file: '/tmp/#sql_46f6_0' (errno: 2)
140402 21:55:51 [ERROR] Aborting

140402 21:55:51 [Note] /usr/sbin/mysqld: Shutdown complete

How can I resolve this?

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>