Get started with MySql

本文介绍MySQL的安装及基本使用方法,包括启动服务器、设置root用户密码、登录服务器等步骤,并提醒不要修改mysql数据库,以免影响权限设置。
Getting started with MySQL is really easy. First you want to install the mysql server. Then you can start the server with this command:

Code:
sudo /etc/init.d/mysql start
Then, because intially the root user has no password, we want to set the password like this:

Code:
mysqladmin -u root password myPassword
You can now login to the mysql server with this:

Code:
mysql -u root -p
You'll need to type in the password that you entered earlier.

Every new MySQL install has 2 databases: mysql and test. Do NOT screw up your mysql database because here is where all the permission and user info is. The test DB is for you to play around with. As was mentioned earlier the MySQL documentation is excellent. That's the main reason I prefer it over the other 2 mentioned above (maybe their docs are better nowadays.) You'll probably want to set up a new user next. The MySQL docs can help you there.

You mentioned that you're familiar with SQL, so you should be able to play around now.

Chris 
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值