Home > Database > Mysql Tutorial > mysql存储过程相关备忘_MySQL

mysql存储过程相关备忘_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:34:39
Original
1043 people have browsed it

bitsCN.com

mysql存储过程相关备忘

 

1.导出存储过程,对存储过程进行备份 

 

mysqldump -u root -p -n -t -d -R --triggers=

false my_db_name >c:/bakproc.sql 

 

2.获取当前日期的年月日 

 

date_format(now(), '%Y') 

 

date_format(now(), '%m') 

 

date_format(now(), '%d') 

 

3.命令行远程连接数据库 

 

mysql -h server_ip -u username -p; 

 

回车输入用户密码即可。 

 

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template