Ubuntu12.04. link to MySQL
1. There is no MySQL database after installation. First, we need to install the MySQL database:Sudo apt-Get install mysql-server-5.1Automatically, MySQL is installed (including server and client ).2. Use C Language To
Utf8_bin, utf8_general_cs, and utf8_bin encoded by utf8 in MySQL
SubmittedShq6.On 2008, November 6, am. Technical article
Utf8_general_ci is case-insensitive. you need to use it when registering your username and email address.
Utf8_general_cs is
(1) how to log on to MySQL using command line
Answer:
(2) import the. SQL file to the MySQL database through the command line:
1. The. SQL file to be imported is moved to the binfile, which is convenient.2. Use CD to specify the corresponding
MySQL databases are used in the project as the backend. I have never used them before. I learned how to configure them,Record the process here for future use.After the installation is downloaded, go to the bin directory under the MySQL installation
# Cd/WWW# Mkdir mysqlbackup# Vi mysqlautobackup. ShThis mysqlautobackup. Sh file writes the following content:Filename = 'date + % Y % m % d'Mysql_bin_dir/mysqldump -- opt datename-u dateuser-pdatepassword |
================ View the database ================================= =
Use the show statement to find out the current database on the server:
mysql> SHOW DATABASES;+----------+| Database |+----------+| mysql || test || tmp
================ Delete a database ================ drop database is used to cancel the table used in the database and cancel the database. Be careful when using this statement! To use drop database, you need to get the database drop permission.
A simple interaction between MySQL and C, using some MySQL C APIs!
Old birds pass by. You can check it out!
/*************************************** * ** This document describes how to use the C interface of MySQL to initialize a database, check
Document directory
Mysqldump-u use the primary name-P password to name the database table> *. SQL
Mysqldump-u use the primary name-P password to name the database table> *. SQL
1. Export all table structures of the database.
This is an example of JDBC database query. It is strange that, after execution, only records with an even serial number can be queried. For example, if the database contains two data entries that meet the requirements, only the second data entry can
. NET + MySQL Development (Database Access)
Favorites
New article: Mobile Database Development tutorial | old article: Using. Net to develop DB2 database applications (1)
The Code is as follows:You need to download the mysql. Net Package MySQL
1. Create the Stored Procedure drop procedure if exists sp_test;
Create procedure sp_test (
In P1 bigint,
In P2 char (64 ),
In P3 char (16)
)
Begin
-- Do somethings
End;
2. variables-define variablesDeclare _ id int default 0;-- Assign a value to
After MySQL is installed, there is a default root user, and the password is blank. However, I cannot log on to the terminal. When I use root to log on to MySQL, # sudo MySQL-U root-P returns the following error: Error 1045 (28000): Access denied for
Step 1: open a command prompt and run:
# C:/QT/2010.05/bin/qtenv. bat
Configure the environment variables. This is a temporary configuration. After CMD is disabled, it becomes invalid. Adding this step saves the trouble of environment variable
MySQL SummaryChange Character SetSet names utf8 will be modifiedCharacter_set_clientCharacter_set_connectionCharacter_set_results UseSet character_set_database = 'utf8
Install MySQL server on Ubuntu, because it is not RedHat, so the RPM package on the MySQL official website can not be used, there are two packages available: mysql-5.1.49-linux-i686-icc-glibc23.tar.gz and mysql-5.1.49-linux-i686-glibc23.tar.gz, what
Introduction
C APIS is included in the mysqlclient library file and released together with the MySQL source code for connecting to the database and performing database queries. There are some examples in the clients directory of the original MySQL
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.