Hello,
I am trying to set up a server on FreeBSD for the first time on an old IBM thinkpad(T43). The installation went smoothly until I tried to install MariaDB. After various attempts at solving the issue on my own I deinstalled the mariadb55-server and -client packages and reinstalled it from a different port. Here are the steps I made:
4 - I checked that /var/db/mysql belonged to user mysql
5 - /var/db/mysql/mys.err contains (among many but I don't want to clutter the post)
6 -
7 - Just in case I tried:
On /var/db/mysql/mys.err the following lines seem to have been concatenated:
I tried many solutions (and should have kept a log :/ )and now I find myself a bit lost. Has anyone encountered the same problem or has any suggestions on where to go from here?
Thank you,
I am trying to set up a server on FreeBSD for the first time on an old IBM thinkpad(T43). The installation went smoothly until I tried to install MariaDB. After various attempts at solving the issue on my own I deinstalled the mariadb55-server and -client packages and reinstalled it from a different port. Here are the steps I made:
- I installed mariaDB from /usr/ports/databases/mariadb-server. (And the -client)
- No issue during the installation, so I copied the medium config file to /usr/local/etc/my.cnf
- In this step I tried to install the database and first errors started to pop out
# mysql_install_db --user=mysql --basedir=/usr/local --datadir=/var/db/mysql
Code:
Installing MariaDB/MySQL system tables in '/var/db/mysql' ...
150805 22:24:08 [Warning] Can't create test file /var/db/mysql/soleil123.lower-test
150805 22:24:08 [ERROR] mysqld: File './mysql-bin.index' not found (Errcode: 13)
150805 22:24:08 [ERROR] Aborting
150805 22:24:08 [Note] /usr/local/libexec/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/db/mysql for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
[...]
# I looked for a conflicting my.cnf and there wasn't any. Still did what was suggested and didn't solve much.
5 - /var/db/mysql/mys.err contains (among many but I don't want to clutter the post)
Code:
150805 15:23:08 [ERROR] Plugin 'InnoDB' init function returned error.
150805 15:23:08 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150805 15:23:08 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
150805 15:23:08 [ERROR] Unknown/unsupported storage engine: InnoDB
150805 15:23:08 [ERROR] Aborting
150805 15:23:08 [Note] /usr/local/libexec/mysqld: Shutdown complete
150805 15:23:08 mysqld_safe mysqld from pid file /var/db/mysql/mys.pid ended
# mysql_upgrade
returned:
Code:
Phase 1/3: Fixing table and database names
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
#service mysql-server start
Starting mysql.
On /var/db/mysql/mys.err the following lines seem to have been concatenated:
Code:
150805 22:43:34 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
150805 22:43:34 mysqld_safe mysqld from pid file /var/db/mysql/mys.pid ended
Thank you,