window under the same server to deploy multiple mariadb (Mysql), service mode to start a brief configuration

Source: Internet
Author: User

Version: MariaDB 10

Environment: D disk, put 2 MariaDB decompression version, respectively d:\MariaDB,d:\mariadba


1, enter MariaDB,mariadba, copy my-xxx.ini(different files corresponding to different hardware configuration), renamed to My.ini


2, the text editor opens the d:\ mariadba my.ini, modifies the place which involves 2 ports, avoids with The conflict of mariadb


3. Registration Service, enter d:\mariadb\bin, command Run "mysqld.exe --install MariaDB10", enter d:\ mariadba\bin, command to Run "mysqld.exe --install mariadb10a", this time the service of window will appear 2 this service, Can be started (Mysqld.exe-remove MariaDB10,mysqld.exe-remove mariadb10a can be removed from the service)


Common commands are attached

Modify root password (bin directory ): mysqladmin.exe -u root password "123456"

Export Database (bin directory ): mysqldump.exe-u root-p db_test > D:\db_test. Sql

Import the database (after logging into the database): source d:\db_test. SQL


Attached to the Common configuration my.ini

[Client]

Default-character-set=utf8


[mysqld]

Character_set_server=utf8
Collation-server=utf8_general_ci


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.