With approval from the European Union, Oracle announced the completion of its acquisition of sun, and a series of Oracle actions began quickly. Since oracle was stuck in the EU for more than half a year, there are many mysql users in China, and the
My MySQL is installed in c: \ mysql. I. Change the password. The first method is as follows: 1. If the root user has no password, C: \ mysql \ bin> mysqladmin-u Root Password "your password" 2. Change the password of the root user if it is 123456 C:
If the web and database are not on the same server, the MySQL server must allow remote connections to run the website properly.
There are two ways to set the remote connection of MySQL:
1. Change the table.It may be that your account is not
Example:
Select email from xxxxxx where email is not null and email <> ''into outfile'/mail.txt 'Lines terminated by '\ r \ n ';
Note:
1. Export the file directory:Modify the directory of the output file name to put it in the specified
# Common basic operations for Structured Query Language in MySQL:/* DDL (Data Definition Language) Data Definition Language */# Create a database:Create Database 'database name' charset utf8;# Delete a database:Drop database 'database name ';#
If you change different servers for phpMyAdmin like me, you need to modify the config. inc. if you are bored with PHP and want to have a better user experience when debugging SQL, you can try this tool-mysql-Front (a full-featured 30-day trial, and
Based on the previousArticleMethod: add the batch processing command to implement automatic backup. The only difference is that the names of backup files in batch processing commands are named by time.
1. Copy the date folder backup================
Original article link
1. subquery of select statement:
Syntax: Select... from table 1 where column 1 =(Select... from... where ....)
2. SELECT statement Table query
Syntax: Select... from (Select...) as temp_table where...
Note: The
Development Environment: apache2.0.54 + php5.1.6 + mysql5.0.26Encoding: in order to make PHP and MySQL better support Chinese, will adopt UTF-8 encoding, the related configuration is as follows.1. MySQL configuration, after installing MySQL, the
Read more
Summary
Permission
Allow Internet access
Column Operations
Modify column name
Modifying column attributes in MySQL
Others
Automatic completion and UTF-8 encoding for Logon Settings
Others
Currently, CMS, blog, BBS, and so on all like to use tag tags for cross-linking, so I also have a taste of it. However, I found thatArticleThe list is slow. It takes 5 seconds! I was puzzled (and finally solved it). My table structure is as follows,
I have been working on mysql Chinese display problems for the last two days. It is quite depressing.
Test Platform: struts1.2 + myeclipse5.5 + hibernate + mysql5.1
The test results today are:
When the default Character Set of mysql is set as follows,
1. create databases, tables, and add data
Here, we use the graphical SQL Manager 2005 Lite for MySQL to create data. Its operation interface is very similar to OFFICE software. It is easy to use and easy to use. Below we start to create databases
Problem: the form application developed by VS2005, the database is MySql.net; Queries statements with Chinese characters, no results are returned, and no error is reported !!!
MySql character encoding problem !!!
Solution:
1. Use MySQLDriverCSAfter
1. Overview of Replication
1.1 problems solved by ReplicationData replication technology has the following features:(1) Data Distribution(2) load balancing)(3) backup(4) high availability and fault tolerance
1.2 How replication worksFrom a
Install mysql plug-inNpm install mysql@2.0.0-alpha7
Location after successful installation:C: \ Users \ User Name \ node_modules \ mysql
How to view the readme. md FileHttp://daringfireball.net/projects/markdown/dingus
Small mysql example
Var mysql =
1. Install windows Services
Mysqld -- install wyzMySql -- defaults-file = "C: \ Test \ MySQL Server 5.5 \ my. ini"
-- WyzMySql is the mysql service name
Ii. Start the service
Net start wyzMySql
-- Note: The data in my. ini must be changed
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