
MySql相关
kezhen
这个作者很懒,什么都没留下…
展开
-
linux下导入、导出mysql数据库命令
一、导出数据库用mysqldump命令(注意mysql的安装路径,即此命令的路径):1、导出数据和表结构:mysqldump -u用户名 -p密码 数据库名 > 数据库名.sql#/usr/local/mysql/bin/ mysqldump -uroot -p abc > abc.sql敲回车后会提示输入密码2、只导出表结构mysqldump -u用户名 -p密码 -转载 2014-02-13 09:39:31 · 965 阅读 · 0 评论 -
Mysql设置允许外网访问(图文)
转自:http://www.cnblogs.com/yuejin/archive/2013/11/12/3419467.html 1、打开mysql.exe(MySQL Command Line Client),输入密码2、输入:use mysql;3、查询host输入: select user,host from user;4、创建host(如转载 2015-07-30 08:50:13 · 664 阅读 · 0 评论 -
Linux下MySQL 5.5的修改字符集编码为UTF8(彻底解决中文乱码问题)
http://www.ha97.com/5359.html一、登录MySQL查看用SHOW VARIABLES LIKE ‘character%’;下字符集,显示如下:+--------------------------+----------------------------+| Variable_name | Value |+---------------------转载 2015-03-03 14:01:54 · 648 阅读 · 0 评论 -
Database Programming in Python: Accessing MySQL
转自:http://www.devshed.com/c/a/python/database-programming-in-python-accessing-mysql/While data storage for applications is no longer considered complex, it is now simplified to the point that flex转载 2015-03-19 08:22:31 · 705 阅读 · 0 评论 -
Kali Mysql 登录失败:MySQL - ERROR 2002 (HY000): Can't connect to local MySQL server through socket
https://www.youtube.com/watch?v=oXjJRrbKjp0修复方法:查看/var/run/mysqld 文件夹是否存在?ls -lart /var/run/my*如不存在,创建mkdir /var/run/mysqld创建mysqld.sock文件touch /var/run/mysqld/mysqld.sock修改权限chown -转载 2015-01-25 11:05:53 · 4713 阅读 · 0 评论 -
How to Install MySQL 5.6 on CentOS 6.3/RedHat EL6/Fedora
转自:http://opensourcedbms.com/dbms/installing-mysql-5-6-on-cent-os-6-3-redhat-el6-fedora/转载 2014-05-27 09:10:18 · 1689 阅读 · 0 评论 -
MySQL Stored Procedure Variables
Summary: in this tutorial, you will learn about variables in stored procedure, how to declare, and use variables. In addition, you will learn about the scopes of variables.A variable is a named da翻译 2014-04-13 19:09:19 · 1982 阅读 · 0 评论 -
ASP.NET Error:Adding the specified count to the semaphore would cause it to exceed its maximum count
http://jwcooney.com/2012/08/13/asp-net-error-adding-the-specified-count-to-the-semaphore-would-cause-it-to-exceed-its-maximum-count/转载 2014-04-14 10:32:13 · 2605 阅读 · 0 评论 -
MySQL Stored Procedure Parameters
Summary: in this tutorial, we will show you how to write MySQL stored procedures with parameters. We will also give you a couple of stored procedure examples to help you understand how to use differ翻译 2014-04-13 20:42:04 · 1970 阅读 · 0 评论 -
Introduction to MySQL Stored Procedures
http://www.mysqltutorial.org/introduction-to-sql-stored-procedures.aspx翻译 2014-04-13 17:44:49 · 1422 阅读 · 0 评论 -
Getting Started with MySQL Stored Procedures
Summary: in this tutorial, we will show you step by step how to develop the first MySQL stored procedure by using CREATE PROCEDURE statement. In addition, we will show you how to call the stored p翻译 2014-04-13 18:39:28 · 1824 阅读 · 0 评论 -
C#連接MySQL
转自:http://blog.hsdn.net/1433.html我在五年前(好久遠…)寫過一篇關於C# 連接 MySQL的文章,由於年代久遠MySQL也更新了相關的DLL,所以舊的程式會發生一些錯誤,因此我更新了這段程式,希望對於有使用C#連接到MySQL的朋友有所幫助。安裝MySQL Connector1. 首先請先到MySQL官方網站下載新的Connector:Conne转载 2014-01-03 21:43:21 · 1163 阅读 · 1 评论 -
mysql命令方式创建表
转自:http://www.isstudy.com/mysql/436.html创建数据表可以使用CREATE TABLE语句,其语法格式如下:CREATE [TEMPORARY] TABEL [IF NOT EXISTS] table_name[(create_definition,…)][table_options] [select_statement]TEMPORARY关转载 2014-03-09 15:32:00 · 2660 阅读 · 0 评论 -
mysql max_allowed_packet 设置过小导致记录写入失败
mysql根据配置文件会限制server接受的数据包大小。有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。查看目前配置show VARIABLES like '%max_allowed_packet%';显示的结果为:+--------------------+---------+| Variab转载 2014-01-05 21:49:16 · 1582 阅读 · 0 评论 -
mysql 导出数据库部分字段或部分数据
搜了挺长时间,都说mysqldump只能导出全部字段,可根据条件导出部分数据的全部字段,网搜了下发现一个导出部分字段的方法,使用select concat('insert into table_name(column1,column2...) values(\"',column_1,'\",\"',column_2,'\"') into outfile 'file_name' from table原创 2016-05-05 14:08:22 · 6411 阅读 · 0 评论