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

mysql存储过程相关备忘_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:34:391041browse

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
Statement:
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