I. MySQL service operations0. Check the database version SQL> status;1. Net start MySQL // start the MySQL Service2. net stop MySQL // stop MySQL Service3. mysql-H host address-u user name-P User Password // enter the MySQL database4. Quit // exit
When you enter MySql in cmd, the system prompts "cannot connect localhost (error 2003)" because the service is not added to the system.
Enter the mysqld -- install command to install the service.
Enter mysql-u username-P
Enter password:
Error
If "error 2003: Can't connect to MySQL server on 'localhost' (10061)" appears, your MySQL has not been started.
Solution: Step 1
Delete step 2 of my. ini under c: \ windowns
Open c: \ mysql \ bin \ winmysqladmin.exe and enter the user name and
Assume that you have logged on
Mysql-H localhost-uroot-proot
5.1. display, create, and delete Databases
Showdatabases; display all databases
Createdatabase xxx; Create a database
Dropdatabase xxx; delete a database5.2 database storage engine
Today, I upgraded MySql in RHEL4 U2. It was a simple task, but I encountered an unexpected problem.
In the original system, MySQL version 4.1.12 is upgraded to 4.1.18. The upgrade file is a ready-made RPM package for RHEL4 downloaded from the
I installed a system today. The Debian etch version and MySQL are all configured, but the following message is displayed when I use phpMyAdmin 2.11.0 to connect to MySQL.
#1045-Access denied for user 'root' @ 'localhost' (using password: Yes) is
Recently, I was busy with completing the setup. I used MySQL to store some system metadata and encountered an error when using the system IP address to connect to MySQL. However, it was okay to use localhost to connect to MySQL.
Error message:
In the past two days, students have conducted a JPA experiment to insert Chinese characters into the database. During the query, the database is garbled and the database is garbled. I posted a large number of questions.
The reason is that no
1. Avoid empty columns in the table;
2. duplicate values or columns should not exist in the table;
III:The record in the table should have a unique identifier.When designing a database table, the database administrator should develop a good habit of
I. Permission tableThree permission tables in the MySQL database: User, DB, hostThe access process of the permission table is:1) check whether the connected IP address, user name, and password exist in the table from the host, user, and password
I recently used MySQL and upgraded it to the latest version through emerge. As a result, I encountered a small problem and posted the solution process here. I hope it will be helpful for children's shoes with similar problems.
1./etc/init. d/MySQL
1. install libmysql In the MySQL directory. DLL is copied to c: \ windows \ system32 \ (my name is win7, but also to the: C: \ WINDOWS \ syswow64 directory );
2. Add the MySQL header file to the environment:
3. Add libmysql. lib to the vs 2010
I need to use Qt in Ubuntu to connect to the MySQL database. I have found a lot on the Internet. This article is clear. At the beginning, mydb cannot be opened. It should be because no "mydb" file is created in MySQL (to be
13.1 mathematical functions
Random numbers may be used, and others are ignored.13.2. String Functions
Key Concat (S1, S2 ....)13.3. Date and Time Functions
Key Points13.4 conditional judgment Functions
If (expr, V1, V2)
Ifnull (V1, V2)
Case
Take notes for MySQL
Chapter 01
SQL (pronounced S-Q-L or sequel) is short for structured query language.SQL is a language specifically used to communicate with databases.
Chapter 02Mysql-u user-P [Password] [-H host-P port]
Chapter 03Show
1. Preparations
Download mysql's latest free installation unzip mysql-noinstall-5.5.25a-win32.zip, decompress it to the relevant directory, such as: D: \ mysql-noinstall-5.1.53-win32. This is the root directory of
I. Software preparation:1. j2sdk1.4.1: Download To http://java.sun.com/j2se/1.4.1/download.html;2. mysql4.0.13: Download To http://www.mysql.com;3. tomcat4.1.24: Go to http://jakarta.apache.org/download;4. Mm. mysql-2.0.4-bin.jar: Download To http://
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service