Install and configure MySql in Linux SuSE

Source: Internet
Author: User

Install mysql in linux suse enterprise 10 and download the rpm package of the corresponding version from the mysql official website (now oracle ).

Http://www.mysql.com/downloads/mysql/#downloads

After the installation is complete, rpm-qa can see the installed mysql package. Here I have installed three packages: server, client, and devel.


1. The first thing after installation is to set a password for the root user,Usr/bin/mysqladmin-u root
Password 'new-password'
You can;

2. Start mysql,/Etc/init. d/mysql stop | start | restart, And then you can test whether the root user can log on;

3. create a userTest_userIdentified'Passwd';

4. create a test database and directly createTest_dbJust fine;

5. add permissions to the new user.Test_userOnlyTest_dbPermission: grant
On test_db. *Test_user @ localhost;If the accessed machine is not a local machine, change the ip address;

Ps: Assign the root user all permissions on any machine:Grant all privileges on *. * to root @ "%" identified by 'Password' with grant option;Note thatFlush privilegesEffective in time;

You can useTest_userLog on and operateTest_dbNow;


In windows, you can download navicat ide. The graphic interface is very convenient.


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.