Today, we have a course design project to use the MySQL database to execute the command line mysql-u root-P as usual. I want to open the database to create a table, but I am always prompted that I cannot open it.
I used MySQL before and installed a
You can use create user or grant to create a user, which is also assigned relevant permissions. Revoke is used to delete user permissions and drop user to delete accounts.
$ Mysql-u root-ppassword: mysql> Create Database test; # create database
[Mysql] Common commands-user operations (create, authorize, modify, delete) and mysql user operations
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.
User authorization and deletion authorization methods in MySQL,
User authorization method
You can add new users by issuing the GRANT statement:
shell> mysql --user=root mysql mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost IDENTIFIED BY
Mysql creates and deletes users and authorizations (for linux testing), and mysqllinux
Note: My runtime environment is SUSE Linux + mysql5.6
1. Create a user:Command: create user 'username' @ 'host' identified by 'Password ';Description:
The source code version of ghost, so far there is no ubuntu installation source, I am not very familiar with rpm, so I can only compile the source code to install, refer to the online compilation and installation options, tried several times,
Reconfigure MySQL.
Remove service, mysqld-nt-remove, success. There are other commands on the Internet, and the operation fails. Re-Configure. The error 1045 is displayed. Run the MySQL Command, set password for 'root' @ 'localhost' = PASSWORD
Install and configure MySQL in the free version of win10, and install and configure win10
I found a lot on the Internet. I found that many of them are not linux systems, but they are different from the current new version. I have done some practical
[Essence series] Mysql essence, mysql
What Mysql requires to be remembered and mastered
1./* View operation */Actions 1./* view operation */
Show processlist -- display which threads are running show variables -- View VARIABLES2./* Database
Note: My runtime environment is widnows xp professional + MySQL5.0
1. Create a user:
Command: create user 'username' @ 'host' identified by 'Password ';
Description: username-the username you will create, host-specifies the host on which the user
Download, install, and configure win10 MySQL without InstallationI. Overview
I found a lot on the Internet. I found that many of them are not linux systems, but they are different from the current new version. I have done some practical work on
Http://www.rainsts.net/article.asp? Id = 988
You can use create user or grant to create a user, which is also assigned relevant permissions. Revoke is used to delete user permissions and drop user to delete accounts.
$ Mysql-u root-ppassword: mysql>
zip Usage: Zip [options] files or directories that need to be compressed after the file name is compressed Common options: -q do not show compression procedure -r Recursive processing, processing all files and subdirectories
1. Connecting to the database server$./mysql-h Host_name-u User_name-p
-H HOST_NAME (--host=host_name), the connected database hostname, can be omitted if it is on the local host.
-U user_name (--user=user_name), database user name, on
1. The simplest solution to the problem in APMServ5.2.6 is
The apmserv-mysql5.1 service cannot be started on the local computer, error 1067, the process is aborted unexpectedly, simply go to the "D:\Program Files\apmserv5.2.6\mysql5.1\bin" folder,
Inadvertently also found CentOS professional forum, remember: http://www.centospub.com
So, the beginning of the learning configuration
This environment:
CentOS System,
Mysql-server (version forgotten, because it was installed using Yum)
Process
First, the MySQL user's basic description:
1.1 Basic structure of the userUsers of MySQL: User name @ host
Username: within 16 charactersHost: Can be host name, IP address, network address, etc.Host Name: Www.111cn.net,localhost
ip:192.168.0.1
First, create the user:
Create user creates a new MySQL account. To use create user, you must have the global Create user permission for the MySQL database or have insert permissions. For each account, create user creates a new record in the
centos7.2The Phpadmin of lampphpMyAdmin is a PHP-based, Web-base schema on the site host MySQL database management tools, so that managers can use the Web interface to manage the MySQL database:
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.