Configuring mySQL fails
Posted by: Igor Korot
Date: July 17, 2025 05:56AM
Date: July 17, 2025 05:56AM
Hi, ALL,
I'm trying to install mySQL on Gentoo Linux box.
Compi;ation went thru fine, however then I got following:
I'm trying to run it as system "root".
Some additional info:
As you can see the setup logs are created but the size of them are 0.
And as you can see above "/tmp" dir is "rwx" for everybody.
What could be the issue?
Thank you.
I'm trying to install mySQL on Gentoo Linux box.
Compi;ation went thru fine, however then I got following:
WaylandGnome /home/igor # emerge --config dev-db/mysql
Configuring pkg...
* Detected settings:
* ==================
* MySQL User: mysql
* MySQL Group: mysql
* MySQL DATA directory: /var/lib/mysql
* MySQL TMP directory: /tmp
* PID DIR: /run/mysqld
* Install db log: /tmp/install_db.221119222.log
* Install server log: /tmp/install_mysqld.633921321.log
* Trying to get password for mysql 'root' user from 'mysql' section ...
* Trying to get password for mysql 'root' user from 'client' section ...
* No password for mysql 'root' user was specified via environment
* variable MYSQL_ROOT_PASSWORD and no password was found in config
* file like '/root/.my.cnf'.
* To continue please provide a password for the mysql 'root' user
* now on console:
* NOTE: Please avoid ["'\_%] characters in the password!
>
* Retype the password
>
* Initializing mysql data directory: /usr/sbin/mysqld --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-federated --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --initialize-insecure --init-file='/tmp/tz.222211327.sql' --basedir='/usr' --datadir='/var/lib/mysql' --tmpdir='/tmp' --log-error='/tmp/install_db.221119222.log' --user=mysql
/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.221119222.log: Permission denied
* ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase):
* Failed to initialize mysql data directory. Please review '/tmp/install_db.221119222.log'!
*
* Call stack:
* ebuild.sh, line 136: Called pkg_config
* environment, line 3777: Called die
* The specific snippet of code:
* die "Failed to initialize ${PN} data directory. Please review '${mysql_install_log}'!";
*
* If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.41::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.41::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment'.
* Working directory: '/var/tmp/portage/dev-db/mysql-5.7.41/empty'
* S: '/var/tmp/portage/dev-db/mysql-5.7.41/work/mysql-5.7.41'
I'm trying to run it as system "root".
Some additional info:
WaylandGnome /home/igor # ls -la /tmp/ins* -rw-r--r-- 1 mysql root 0 Jul 16 21:10 /tmp/install_db.221119222.log -rw-r--r-- 1 mysql root 0 Jul 16 21:10 /tmp/install_mysqld.633921321.log WaylandGnome /home/igor #
As you can see the setup logs are created but the size of them are 0.
WaylandGnome /home/igor # ls -la / total 202248 drwxr-xr-x 21 root root 4096 Aug 21 2021 . drwxr-xr-x 21 root root 4096 Aug 21 2021 .. drwxr-xr-x 2 root root 4096 Apr 3 2024 bin drwxr-xr-x 3 root root 4096 Jun 16 2024 boot drwxr-xr-x 16 root root 3580 Jul 16 21:07 dev drwxr-xr-x 79 root root 4096 Jul 16 21:07 etc drwxr-xr-x 3 root root 4096 Aug 16 2021 home drwxr-xr-x 12 root root 4096 Jun 24 2024 lib drwxr-xr-x 6 root root 4096 Dec 8 2024 lib64 drwx------ 2 root root 16384 Aug 9 2021 lost+found drwxr-xr-x 2 root root 4096 Aug 8 2021 media drwxr-xr-x 4 root root 4096 Aug 29 2021 mnt -rw-r--r-- 1 root root 9865 Aug 21 2021 modules_loaded drwxr-xr-x 2 root root 4096 Aug 8 2021 opt dr-xr-xr-x 243 root root 0 Jul 16 16:07 proc drwx------ 6 root root 4096 Jul 16 21:10 root drwxr-xr-x 20 root root 680 Jul 16 21:08 run drwxr-xr-x 2 root root 4096 Jun 24 2024 sbin -rw-r--r-- 1 root root 207004312 Aug 9 2021 stage3-amd64-openrc-20210808T170546Z.tar.xz dr-xr-xr-x 13 root root 0 Jul 16 16:07 sys drwxrwxrwt 10 root root 4096 Jul 16 21:10 tmp drwxr-xr-x 12 root root 4096 Aug 8 2021 usr drwxr-xr-x 10 root root 4096 Dec 8 2024 var WaylandGnome /home/igor #
And as you can see above "/tmp" dir is "rwx" for everybody.
What could be the issue?
Thank you.
Subject
Written By
Posted
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.