`
wellee
  • 浏览: 101029 次
  • 性别: Icon_minigender_1
  • 来自: 温州
社区版块
存档分类
最新评论

Ubuntu 10.04 Lucid Lynx mysql

阅读更多

Mysql server 5.1 安装记录

 

参考:

http://library.linode.com/lamp-guides/ubuntu-10.04-lucid/#configure_mysql_and_set_up_databases

http://www.jonathanmoeller.com/screed/?p=1781

 

摘要

 

   sudo apt-get install mysql-server

 

  sudo mysql_install_db

 

mysql_secure_installation

 

mysql -u root -p

 

First, create the database:

CREATE DATABASE newdatabaser;

 

Create a user who can access the database:

CREATE USER newdatabaseruser;

 

Next, set a password for the new user:

SET PASSWORD FOR newdatabaseuser= PASSWORD(“password”);


GRANT ALL PRIVILEGES ON newdatabase.* TO newdatabaseuser IDENTIFIED BY ‘password’;

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics