MariaDB: mysql_install_db causes server segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Undecided
|
Unassigned | ||
OurDelta |
Confirmed
|
High
|
Unassigned |
Bug Description
I've tried installing MariaDB from
http://
I got HTTP 404 errors on the first attempt, but not on the second.
The package asked me to change root password several times during the
installation. In all cases, I've just hit 'enter' as an indication that I do
not want to change it.
As a result, I got this:
Setting up mariadb-
Setting up mariadb-server-5.1 (5.1.38-ourdelta81) ...
* Stopping MariaDB database server mysqld [ OK ]
Replacement succeeded for "/usr/sbin/mysqld".
* Starting MariaDB database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
ERROR 1045 (28000): Access denied for user 'debian-
Setting up libhtml-
Setting up mariadb-server (5.1.38-ourdelta81) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@pylon64:~#
root@pylon64:~# /etc/init.d/mysql status
/usr/bin/
error: 'Access denied for user 'debian-
*
root@pylon64:~# /etc/init.d/mysql start
* Starting MariaDB database server mysqld [ OK ]
root@pylon64:~#
Further experimentation showed that "/etc/init.d/mysql start" works, while
restart and stop commands do not because of permission errors.
/etc/mysql/
[client]
host = localhost
user = debian-sys-maint
password = G4dQ6VLVrD81ilks
socket = /var/run/
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = G4dQ6VLVrD81ilks
socket = /var/run/
basedir = /usr
This user/password pair is not accepted by the server. I had to edit
/etc/my.cnf and put there 'skip-grant-tables' so that I could log in.
After logging in, I can see that mysql.user table is empty.
It looks like installer script wasn't successful in adding the
debian-stys-maint user?
Related branches
- OurDelta-core: Pending requested
-
Diff: 31 lines1 file modifiedbakery/debian-5.1/dist/Debian/mariadb-server-5.1.files (+24/-0)
- OurDelta-core: Pending requested
-
Diff: 154 lines5 files modifiedbakery/debian-5.1/dist/Debian/control (+8/-10)
bakery/debian-5.1/dist/Debian/mariadb-server-5.1.files (+24/-0)
bakery/debian-5.1/dist/Debian/rules (+2/-2)
bakery/debian-5.1/dist/Ubuntu/control (+4/-4)
bakery/mysql51-ourdelta-centos.spec (+5/-0)
Changed in ourdelta: | |
status: | New → Confirmed |
importance: | Undecided → High |
summary: |
- MariaDB: deb package errors on installation + MariaDB: mysql_install_db segfault |
summary: |
- MariaDB: mysql_install_db segfault + MariaDB: mysql_install_db causes server segfault |
Changed in maria: | |
status: | New → Confirmed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
> The package asked me to change root password several times during the
> installation. In all cases, I've just hit 'enter' as an indication that I do
> not want to change it.
And when I re-install (having removed the datadir manually) and do specify the
password when asked, I first get a dialog box saying
---
Unable to set password for the MySQL "root" user
An error occurred while setting the password for the MySQL administrative user. This may have happened because the
account already has a password, or because of a communication problem with the MySQL server.
You should check the account's password after the package installation.
Please read the /usr/share/ doc/mariadb- server- 5.1/README. Debian file for more information.
--
and then this output:
Setting up mariadb- server- core-5. 1 (5.1.38-ourdelta81) ... mysql/maria_ log_control' not found (Errcode: 13) mysql/maria_ log_control' www.primebase. org
Setting up mariadb-server-5.1 (5.1.38-ourdelta81) ...
* Stopping MariaDB database server mysqld [ OK ]
091015 2:11:06 [Note] Plugin 'FEDERATED' is disabled.
091015 2:11:06 [ERROR] mysqld: File '/var/lib/
091015 2:11:06 [ERROR] mysqld: Got error 'Can't open file' when trying to use maria control file '/var/lib/
091015 2:11:06 [ERROR] Plugin 'MARIA' init function returned error.
091015 2:11:06 [ERROR] Plugin 'MARIA' registration as a STORAGE ENGINE failed.
091015 02:11:06 [Note] PrimeBase XT (PBXT) Engine 1.0.08d RC loaded...
091015 02:11:06 [Note] Paul McCullagh, PrimeBase Technologies GmbH, http://
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins.
091015 2:11:07 InnoDB: highest supported file format is Barracuda.
091015 2:11:07 InnoDB Plugin 1.0.3-6a started; log sequence number 46409
091015 2:11:07 [ERROR] mysqld: Can't find file: './mysql/user.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/user.frm' (errno: 13)
091015 2:11:07 [ERROR] Aborting
091015 2:11:07 InnoDB: Starting shutdown...
091015 2:11:08 InnoDB: Shutdown completed; log sequence number 46419
091015 02:11:08 [Note] PrimeBase XT Engine shutdown...
091015 2:11:08 [Note] /usr/sbin/mysqld: Shutdown complete
Replacement succeeded for "/usr/sbin/mysqld".
[fail]
* /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
* Starting MariaDB database server mysqld
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mariadb-server-5.1 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-5.1; however:
Package mariadb-server-5.1 is not configured yet.
dpkg: error processing mariadb-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc6 ...
No ...