gpt4 book ai didi

php - XAMPP(Windows)自动备份MySQL数据库

转载 作者:行者123 更新时间:2023-11-29 22:23:30 24 4
gpt4 key购买 nike

我正在尝试在 Windows 中创建批处理文件来备份 MySQL 数据库,我已经尝试过:

C:\xampp\MySQL\bin\MySQLDump –u root –p database_name –result-file=”C:\Users\Administrator\Desktop\MySQLDump.sql”

但我收到一条错误消息:

Got error: 1044: Access Denied for user ``@`localhost` to database `?u` when selecting the database

最佳答案

此问题/错误的解决方案是使用以下 mysqldump 命令之一:

mysqldump --opt --lock-tables=false -u USER -p DBNAME > dump.sql

mysqldump --opt --single-transaction -u USER -p DBNAME > dump.sql

http://alvinalexander.com/mysql/mysql-error-1044-access-denied-for-user-using-lock-tables

关于php - XAMPP(Windows)自动备份MySQL数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30492163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com