[Email protected] native]# mysql-uhive-pEnter Password:ERROR 1045 (28000): Access denied for user ' hive ' @ ' localhost ' (using Password:yes)[Email protected] native]# mysql-uroot-pEnter Password:Welcome to the MySQL Monitor. Commands End With; or
1. Modify the configuration on the basis of the original single instance/USR/MY.CNF[Mysqld_multi]Mysqld=/usr/bin/mysqld_safeMysqladmin=/usr/bin/mysqladminUser=root[mysqld3306]port=3306Socket=/var/lib/mysql/mysql.sockPid-file=/var/lib/mysql/localhost.
1. mysql Common commandsCreate database name; Create a databaseUse DatabaseName; Select DatabaseDrop database name deletes databases directly and does not alertShow tables; Show TableDescribe TableName; Detailed description of the tableSELECT * FROM
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be used without spaces, others are the same)Disconnect: Exit (Enter)Create authorization: Grant SELECT on database. * To User name @ login host identified by \
Key content Modify the following script Mysql_practice.sql to practice MySQL basic operations:show databases;Create Database if not exists' HA '; UseHA;Create Table if not existsStudent (IDint, nameChar( +), ageint); showCreate Tablestudent
Database Basic Concept Literacy: What is a database? a database is a warehouse that organizes, stores, and manages data according to its structure, and each database has one or more different APIs for creating, accessing, managing, searching, and
sudo apt-get// for update source, get package list sudo apt-get// for upgrading specified packages Install//installation Remove//Remove package Autoremove//automatic removal of all non-functional packages purge //package with configuration file
Import Database:1 Mysql>use ygeshop;Ygeshop for Database name2 Mysql>source the imported file name;As I entered the command line: Mysql>source ygeshop.sql;1. Display the list of databases.show databases;The default is two databases: MySQL and test.
The Binlog log is used to record all statements that have updated data or that have potentially updated data. Statements are saved as "events," which describe data changes. When we fail the database for some reason, we can use the Binlog log to
1. Start the MySQL serverIn fact, the previous article has talked about how to start MySQL. Two methods:One is to use Winmysqladmin, if the machine started automatically run, you can go directly to the next step.Second, running in DOS
MySQL master-slave (MySQL Replication), mainly used for MySQL backup or read-write separation. Before you configure the configuration, configure two MySQL servers, and if your machine cannot run two Linux VMs at the same time, consider running two
SHOW CHARACTER SETShow all the available character setsCHARACTER SET CHARACTERSETlike'latin%';SHOW COLLATIONThe output includes all available character sets like ' latin1% ';SHOW COLUMNSDisplays the information for each column in a given table, and
Source: http://blog.itpub.net/26515977/viewspace-1208257/We always have to live in a certain frame, the structure of the framework comes from the law, from the moral, and from the unspoken rules. Most people just live, life is a few people, after
MySQL Dual master ConfigurationPrepare the environment: the server operating system is RHEL6.4 x86_64 To minimize the installation. Both host A and host B shut down the firewall and SELINUX with IP addresses of 192.168.131.129 and
There are a lot of basic commands in MySQL, and the show command is one of them, and it's easy to confuse the use of SHOW commands among many users, and this article brings together the many uses of the show command.A. Show tables or show tables
MySQL UninstallYum remove MySQL mysql-server mysql-libs compat-mysql51Rm-rf/var/lib/mysqlRm/etc/my.cnfSee if you have MySQL software:Rpm-qa|grep MySQLSome words continue to deleteMySQL Installation1> If you do not have a local installation package,
PHP MySQL database common cmd command setshow databases; Display DatabaseCreate database name; Create a databaseUse DatabaseName; Select DatabaseDrop database name deletes databases directly and does not alertShow tables; Show TableDescribe
First, download, here to use the Green decompression versionHttp://mirror.services.wisc.edu/mysql/Downloads/MySQL-5.1/mysql-noinstall-5.1.32-win32.zipSecond, configure the parameters of MySQL1. Unzip the green version of the software to
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.