怎樣安裝在ubuntu12.04上安裝mysql
Abstract
MySQL is the most trusted and depended-on open source database platform in use today. As such, 9 out of the top 10 most popular and highly trafficked websites in the world rely on MySQL primarily due to its ubiquity across heterogeneous platforms and application stacks and for its well-known performance, reliability and ease of use. This blog entry will guide you through the step-by-step installation of MySQL 5.5 on Ubuntu Linux 12.04 LTS 32 bit. This installation is performed on a clean installation of Ubuntu Server 12.04 32 bit.
Step 1: Open your Terminal
Press the following keyboard shortcut:
1
|
Ctrl
+ Alt + T |
Step 2: Update your package cache
Run the following command in your terminal:
1
|
sudo apt-get
update |
Step 3: Install the mysql-server-5.5 package
Run the following command in your terminal:
1
|
sudo apt-get
install mysql-server-5.5 |
Step 4: Create a new MySQL database
Run the following commands in your terminal, replacing newdatabase
, newuser
andnewpassword
:
1
2
3
4
|
mysql
-u root -p CREATE
DATABASE newdatabase; GRANT
ALL PRIVILEGES ON newdatabase.* TO newuser@localhost IDENTIFIED BY 'newpassword' ; Press
CTRL + D |
Step 5: Check whether MySQL is running
Run the following command in your terminal:
1
|
sudo netstat
-tap | grep mysql |
You should see the following line or something similar:
1
|
tcp
0 0 localhost:mysql *:* LISTEN 2810 /mysqld |
Step 6: Congratulations – You have just installed MySQL on Ubuntu. Share this fantastic news using one of the share buttons or leave a comment in the reply section below.
相關文章
- 怎樣在 Ubuntu Linux 上安裝 MySQLUbuntuLinuxMySql
- mysql 在windows上安裝MySqlWindows
- 怎樣在Apache上安裝MOD_SSL (轉)Apache
- mysql在linux上cmake安裝方法(自己安裝版)MySqlLinux
- 怎樣判斷mysql是否安裝成功MySql
- ubuntu12.04下怎麼安裝QT4.0UbuntuQT
- 怎樣在 CentOS 7.0 上安裝和配置 VNC 伺服器CentOSVNC伺服器
- 怎樣檢視mysql的安裝目錄MySql
- ubuntu12.04 lts 安裝gcc 4.8UbuntuGC
- 在Ubuntu安裝MySqlUbuntuMySql
- 2、在VM上的 CentOS 6.5 上安裝mysqlCentOSMySql
- 怎樣在雲伺服器安裝ftp伺服器FTP
- 怎樣在桌面上安裝 Docker CE?Docker
- 怎樣在 Ubuntu 下安裝 Moodle(魔燈)Ubuntu
- 怎樣在Ubuntu 14.04中安裝JavaUbuntuJava
- 怎樣安裝jupyter?
- 在 CentOS 7 / RHEL 7 上怎樣安裝 Eclipse Luna IDECentOSEclipseIDE
- linux上安裝mysqlLinuxMySql
- ubuntu12.04 桌面版 jdk 安裝UbuntuJDK
- Mysql在windows上安裝後解除安裝重新安裝需要root使用者密碼MySqlWindows密碼
- 在CentOS上安裝GitCentOSGit
- 在centos上安裝molochCentOS
- 在Windows上安裝MavenWindowsMaven
- 在CentOS上安裝dockerCentOSDocker
- 在CentOS上安裝PowerShellCentOS
- 在windows上安裝numpyWindows
- 在mac上安裝DockerMacDocker
- 在Centos上安裝wordpressCentOS
- 在AIX上安裝GCCAIGC
- hive在centos上安裝HiveCentOS
- 在lfs上安裝tcpdumpTCP
- 在AIX上安裝VNCAIVNC
- SDL在win上安裝
- mysql安裝 (yum 安裝)MySql
- 淺談怎樣在UNIX系統下安裝MySQL資料庫(轉)MySql資料庫
- 在騰訊雲上安裝mysql遇到的問題MySql
- mysql在redhat as4上的安裝過程MySqlRedhat
- flash player win10如何安裝_在win10下怎樣安裝flash playerWin10