MARIADB and MySQL Coexist

Source: Internet
Author: User
Tags deprecated uuid



The following is an official MARIADB document explaining how MARIADB is installed on a host that already exists on a MySQL instance:


https://mariadb.com/kb/en/library/installing-mariadb-alongside-mysql/


However, if you install the MARIADB first, then install MySQL, for example:


MariaDB binaries in /opt/mysql/ MariaDB -10.2.8-linux-x86_64/


In/usr/local/making a soft link, i.e.


ln -s /opt/mysql/mariadb-10.2.8-linux-x86_64/ mysql


See "MARIADB Installation" in the configuration is the same.


Attention during installation


The new MySQL instance configuration file, such as/ETC/MY3308.CNF, data and other files are set/data/mysql/mysql3308/{data,log,tmp}under.
The soft links made are:


ln -s /opt/mysql/mysql-5.7.19-linux-glibc2.12-x86_64/    mysql5.7


When initializing MySQL, be sure to specify the configuration file!!


cd /usr/local/mysql5.7./bin/mysqld --defaults-file=/etc/my3308.cnf --initialize


Initialization does not have an error, but the view log found error and multiple warning, see finally.
There is one error:


[ERROR] Can‘t read from messagefile ‘/opt/mysql/mariadb-10.2.8-linux-x86_64/share/english/errmsg.sys‘


In the configuration file, add a parameter to


[mysqld]language = /usr/local/mysql5.7/share/english
Start


Directly using the absolute path of the mysqld to start


/usr/local/mysql5.7/bin/mysqld --defaults-file=/etc/my3308.cnf &
Shut down


Directly using the absolute path of the mysqladmin to close


/usr/local/mysql5.7/bin/mysqladmin -S /data/mysql/mysql3308/tmp/mysql3308.sock -uroot -p shutdown
Extended


The Startup/shutdown/Login database can be made into shell files



Start


echo ‘/usr/local/mysql5.7/bin/mysqld --defaults-file=/etc/my3308.cnf &‘ > start.shchmod +x start.sh


Shut down


echo ‘/usr/local/mysql5.7/bin/mysqladmin -S /data/mysql/mysql3308/tmp/mysql3308.sock -uroot -p1234567 shutdown‘ > stop.shchmod +x stop.sh


Login


echo ‘/usr/local/mysql5.7/bin/mysql -S /data/mysql/mysql3308/tmp/mysql3308.sock -uroot -p1234567‘ > login.shchmod +x login.sh


This enables the MARIADB and MySQL to coexist on the same host.



However, after initialization, the error log records some warning messages:


2017-10-25T10:39:08.325682Z 0 [Warning] The syntax ‘--language/-l‘ is deprecated and will be removed in a future release. Please use ‘--lc-messages-dir‘ instead.
2017-10-25T10:39:08.325842Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-10-25T10:39:08.325937Z 0 [Warning] Using pre 5.5 semantics to load error messages from /usr/local/mysql5.7/share/english/.
2017-10-25T10:39:08.325943Z 0 [Warning] If this is not intended, refer to the documentation for valid usage of --lc-messages-dir and --language parameters.
2017-10-25T10:39:08.326404Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326414Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326478Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326483Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326547Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326550Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326713Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326717Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326784Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326792Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326839Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326843Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.326895Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.326899Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327097Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327108Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327175Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327184Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327373Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327383Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327432Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327439Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327566Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327578Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327673Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327678Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327762Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327766Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327820Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327824Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327870Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327874Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.327968Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.327972Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328017Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328021Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328082Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328086Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328152Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328156Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328216Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328220Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328291Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328296Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
2017-10-25T10:39:08.328341Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import‘
2017-10-25T10:39:08.328345Z 0 [Warning] Unknown LDML tag: ‘charsets/charset/collation/rules/import/source‘
 100
 100
 100
2017-10-25T10:39:08.912076Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-10-25T10:39:08.965834Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-10-25T10:39:09.024512Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: bb700150-b970-11e7-8e66-0050568a571f.
2017-10-25T10:39:09.025193Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed‘ cannot be opened.
2017-10-25T10:39:09.026291Z 1 [Note] A temporary password is generated for [email protected]: eiq-<*>yO0k-


Mariadb and MySQL coexist


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.