UbuntuMySQL and Workbench Installation

Source: Internet
Author: User
1. Install mysql 1. sudoapt-getinstallmysql-servermysql-client (a window pops up asking for the mysqlroot user password during installation) 2. Once Installation

I. mysql installation 1. sudo apt-get install mysql-server mysql-client (a window pops up asking for the mysql root User Password during the installation process) 2. Once Installation

1. Install mysql
1. sudo apt-get install mysql-server mysql-client

(A window pops up asking for the mysql root User Password during the installation process)

2. Once the installation is complete, the MySQL server should be started automatically. You can run the following command at a terminal prompt to check whether the MySQL server is running:
Pprun @ pprun-t61 :~ $ Sudo netstat-tapln | grep mysql
Tcp 0 0 0.0.0.0: 3306 0.0.0.0: * LISTEN 1293/mysqld

3. If the server cannot run properly, run the following command to start it:
Sudo/etc/init. d/mysql restart

4. allow remote access to the MySQL database
In Ubuntu, MySQL only allows local access by default. If you want other machines to remotely access this Mysql database, you need to set something. Next we will step by step:

$ Sudo gedit/etc/mysql/my. cnf

Bind-address = 127.0.0.1
Change bind-address = the IP address of your machine so that other machines can access MySQL.
Or you can comment it out directly.


Ii. workbench
(When I published this article, mysql workbench 5.2 series is release candidate)
1. download mysql-workbench-ce-5.2.24-1ubu910-i386.deb

2. apt-get install libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libzip1 mysql-client-5.1 python-paramiko python-pexpect

3. sudo dpkg-I mysql-workbench-ce-5.2.24-1ubu910-i386.deb

4. If any error occurs, follow the prompts.
Sudo apt-get-f install

5. After installation, choose menu application | Mysql Workbench under programming

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.