[MDEV-16562] cannot install mariadb on ubuntu 16.04 Created: 2018-06-25  Updated: 2018-06-26  Resolved: 2018-06-26

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.3.7
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: zhuqingtao Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: need_feedback


 Description   

how can I install mariaDb in ubuntu?
I checked the INSTALL_BINARY in mariadb-10.3.7.tar.gz, do these:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql

but can not do this : shell> scripts/mysql_install_db --user=mysql

if I cd scripts directory and do mysql_install_db.sh --user=mysql,

got those error:

root@fullintest-desktop:/usr/local/mysql/scripts# mysql_install_db --user=mysql
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
2018-06-25 15:04:13 0 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
2018-06-25 15:04:44 0 [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'
2018-06-25 15:04:44 0 [ERROR] Plugin 'Aria' init function returned error.
2018-06-25 15:04:44 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2018-06-25 15:04:44 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11

how can i install mariaDb?



 Comments   
Comment by Elena Stepanova [ 2018-06-25 ]

This error usually means what it says, "file is probably in use by another process". Please check that there is no mysqld process running on the machine.

Comment by zhuqingtao [ 2018-06-26 ]

yes, another process runing, killed and installed. but how can I do this:
to start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system.

where is the right place ?

Comment by zhuqingtao [ 2018-06-26 ]

and after installed, cmd screen tell us:
You can test the mariadb daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl

but there is no such file or directory, and can not open mysql-test-run.pl.

where is the mysql-test-run.pl ?

Comment by Elena Stepanova [ 2018-06-26 ]

The point of binary tarball is that it can (hypothetically) be installed on different Linux flavors, there is no one instruction which would universally fit to all of them, e.g. the "right place" for the startup scripts / systemd scripts and such can be different for different systems. It is assumed that people who use binary tarball and install it system-wide are system admins which know the specifics of their system. Otherwise you might be better of with system-specific installation packages which would do configuration for you (if you still want to install it system-wide), or just use the tarball locally.

mysql-test-run.pl is within the tarball. Where it ended up after you unpack it depends on how you did it.

Please note that JIRA is a bugtracking system, it's not the right place for seeking advice. If you need help with your system configuration, please use community forums and mailing lists. You might also consider getting a support contract. If you have a support contract, it's better to file a ticket through it.

Generated at Thu Feb 08 08:29:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.