Home > Database > Mysql Tutorial > Ubuntu下MySQL安装指南

Ubuntu下MySQL安装指南

WBOY
Release: 2016-06-07 15:01:45
Original
1005 people have browsed it

MySQL安装指南 要安装 MySQL,可以在终端提示符后运行下列命令: sudo apt-get install mysql-server mysql-client 一旦安装完成,MySQL 服务器应该自动启动。您可以在终端提示符后运行以下命令来检查 MySQL 服务器是否正在运行: sudo netstat -tap | grep

MySQL安装指南

要安装 MySQL,可以在终端提示符后运行下列命令:

sudo apt-get install mysql-server mysql-client

一旦安装完成,MySQL 服务器应该自动启动。您可以在终端提示符后运行以下命令来检查 MySQL 服务器是否正在运行: sudo netstat -tap | grep mysql

当您运行该命令时,您可以看到类似下面的行:<br>tcp 0 0 localhost.localdomain:mysql *:* LISTEN -
Copy after login
如果服务器不能正常运行,您可以通过下列命令启动它:<br>sudo /etc/init.d/mysql restart
Copy after login

配置 MySQL 的管理员密码

sudo mysqladmin -u root password newpassword

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template