ubuntu安装Mysql
来源:互联网 发布:怎么在爱淘宝上推广 编辑:程序博客网 时间:2024/05/09 07:09
这个比较简单
1.安装
sudo apt-get install mysql-server mysql-client装完后会自动打开服务,使用netstat看看是否装上了,如下:lord@ubuntu:~$ sudo netstat -tap|grep mysql[sudo] password for lord: tcp 0 0 localhost:mysql *:* LISTEN 772/mysqld lord@ubuntu:~$2.开启服务命令如下:
lord@ubuntu:~$ sudo /etc/init.d/mysql restartRather than invoking init scripts through /etc/init.d, use the service(8)utility, e.g. service mysql restartSince the script you are attempting to invoke has been converted to anUpstart job, you may also use the stop(8) and then start(8) utilities,e.g. stop mysql ; start mysql. The restart(8) utility is also available.mysql stop/waitingmysql start/running, process 2302lord@ubuntu:~$3.连接数据库,进行数据库操作
lord@ubuntu:~$ mysql -h localhost -u root -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 37Server version: 5.1.54-1ubuntu4 (Ubuntu)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.This software comes with ABSOLUTELY NO WARRANTY. This is free software,and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>至此Mysql在ubuntu中安装成功。如有不对的地方请指正。
- [mysql] ubuntu 安装 mysql
- [mysql]ubuntu安装mysql
- 【MySql】Ubuntu安装MySql
- MySQL-----Ubuntu安装MySQL
- ubuntu源码安装mysql
- Ubuntu安装配置Mysql
- ubuntu 9.04 安装 MySQL
- ubuntu MySQL安装指南
- ubuntu 下 MYSQL 安装
- Ubuntu 9.10 安装mysql
- ubuntu安装MySQL,Apache
- ubuntu 源码安装Mysql
- ubuntu 安装mysql apache
- ubuntu 安装 mysql
- Ubuntu安装Mysql
- ubuntu MySQL安装指南
- Ubuntu安装配置Mysql
- ubuntu MySQL安装指南
- AS3中自定义事件发送发者的三种方法
- access 连表查询
- ASP.NET将DataTable导出为EXCEL
- mysql备份
- Android 沉淀之获取手机屏幕大小
- ubuntu安装Mysql
- IGMPv1
- VC2005从开发MFC ActiveX ocx控件到发布到.net网站的全部过程
- 永远不要依赖空间服务商为你的提供网站备份
- ubuntu更换gcc g++编译器默认版本
- C/C++:构建你自己的插件框架
- Zip压缩文件 与 解压
- JS判断浏览器类型及版本
- 20111111==程序员