Install the unpacked version of MARIADB

Source: Internet
Author: User
Tags mysql version

Today tried to install the decompression version of the MARIADB, on the official web https://downloads.mariadb.org/downloaded the 5.5 version of the mariadb Zip package,

After practice found that the MARIADB decompression version of the installation and MySQL version of the install is basically the same.

1. First unpack the installation package, create the My.ini file in the bin directory, the file content is:

= 11111Port=3306socket=/tmp/mysql.sockdefault-character-set=utf-8# The MariaDB server#[mysqlid]port=3306socket=/tmp/mysql.sockdefault-character-set= Utf-8

2. Next configure the MARIADB environment variable so that you can access the MARIADB in any directory on the command line, locate the environment variable path, and add the address of the bin directory under MySQL.

3. Open the command line with administrator privileges bymysqld --install-manual "服务名" 命令安装windows服务,其中服务名是自己定义的;如果想要卸载服务,则使用:

Mysqld--remove.

4. Start the service, reopen the command line, enter the MySQL return, found to log in to MySQL, using Mysql-uroot can log in, indicating that the root user does not set a password,

Use the command mysqladmin-u root password "New password", if you want to change the password, then use mysqladmin-u root-p old password password "new password",

This way, the MARIADB can be used normally.

Attention:

(1). If the login password is incorrect, an error 1045 (28000) will appear: Access denied for user ' ODBC ' @ ' localhost ' (using Password:yes)

Error, you need to change the root login password:

Update user set Password=password ("MySQL") where user= ' root ';

flush privileges;.

(2). During the installation process, it is found that only MySQL can log in to the database, because there is a user named "" in the database, need to use the command after logging into the database

Delete from Mysql.user where user= ""; Delete it.

Install the unpacked version of MARIADB

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.