[Mysql] Common commands-user operations (create, authorize, modify, delete)
Each user in Mysql corresponds to different user addresses and permissions.
There are three ways to create a Mysql user: 1. create user 2. grant 3. Operate the mysql. user
The following article describes how to install and configure a MySQL database in Ubuntu and how to configure the actual operation procedures and precautions of the MySQL database and how to correctly manage the msyql database, the following is the
Mysql sets Remote Access Permissions. 1. Modify the table method. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log on to the computer on the localhost. After logging on to mysql,
Common MYSQL commandsStart: net start mySql;Enter: mysql-u root-p/mysql-h localhost-u root-p databaseName;List databases: show databases;Select Database: use databaseName;List tables: show tables;Show columns from tableName;Create a database: source
Some netizens often asked questions about mysql permissions in the QQ group or forum. Today, I will take the time to summarize my experience on permission management for MYSQL Databases during the past few years, I also hope it will be helpful for
I. how to start mysql in Ubuntu:/etc/init. d/sudomysqld 2. the user adds bin & gt; mysql-urootmysql & gt; grant permission 1, permission 2 ,... permission non database name. table name to user name @ user address identifiedby 'Connection password';
Script sharing for exporting User permission settings in MySQL, mysql user permissions
When migrating a MySQL database, you sometimes need to migrate the users and permissions in the source database. For this migration, we can obtain the user's
How to assign permissions to mysql users and mysql users
1. Create a new user in Mysql
Syntax:
1. create user Username identified by 'Password ';
Example: create user xiaogang identified by '20150901 ';
By default, new users do not have any
Frequently-used MySQL database commands: sharing bitsCN.com 1. frequently-used MySQL commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables;
Overview: recently, MySQLWorkbench remote management tool is used to remotely manage MySQL on a virtual machine. However, some problems are encountered during the configuration process. The following is an overview of this problem
How to prevent remote access from MySQL database bitsCN.com
Solution:
1. change the table method. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log on to MySQL on The localhost
Modify field type altertable'table _ name' modifycolumn1_archar (50); add field altertable'table _ name' add1_archar (50); add PRIMARYKEY (primary key index) altertable'table _ name'a # Modify the field type
Alter table 'Table _ name' modify column
Set bitsCN.com for the remote access permission of the MySQL database.
1./cd
/Usr/local/mysql/bin
./Mysql-h localhost-u root
// You can access the MySQL server.
2. mysql> GRANT ALL
Privileges on *. * TO 'root' @ '%' WITH GRANT OPTION
// Grant data
How to configure the MySQL learning notes bitsCN. comMYSQL database:
Generally, you just need to modify my. ini and point it to the Database Directory.
Liu Yongfa (yongfa365) Blog has tested the simplest method:
1. net stop mysql
2. open C: Program
MySQLStudy-MySQL User and permission management MySQL server uses the MySQL permission table to control user access to the database. the MySQL permission table is stored in the mysql database and initialized by the mysql_install_db script. These
Common MySQL database commands. share bitsCN.com
1. MySQL common commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays tables
Describe
UbuntuLinux: MySQL installation guide Ubuntu
Install MySQL
Sudo apt-get install mysql-server
This should be very simple, and I don't think there is much problem with the installation, so I will not talk about it much. let's talk about the
I. How to start mysql in Ubuntu: etcinit. dsudomysqld 2. Add bingt to the user; mysql-urootmysqlgt; grant permission 1, permission 2,... Permission non
I. how to start mysql in Ubuntu:/etc/init. d/sudo mysqld 2. the user adds bingt; mysql-u
Since MySQL was acquired by Oracle, the community has been worried that MySQL may be shut down or some other reasons may cause MySQL support problems. So now many versions of the default database are transferred from MySQL to Mariadb. In addition,
The MySQL architecture is master-slave (master-slave), and the master node is automatically switched to slave when the master node fails. You can also set it to a dual master, but there is a drawback: when the pressure on the master is very high,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.