We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#mysql
直接由 information_schema 找 MySQL Table auto_increment 的最大值, 有下述兩種情況:
SELECT TABLE_ROWS FROM information_schema.tables WHERE table_name='YOUR_TABLE_NAME';
SELECT TABLE_ROWS FROM information_schema.tables WHERE table_name='YOUR_TABLE_NAME' AND table_schema = 'YOUR_DB_NAME';
或下述: use YOUR_DB_NAME; // 抓取自己現在的 Database name 可用: SELECT DATABASE();
SELECT TABLE_ROWS FROM information_schema.tables WHERE table_name='YOUR_TABLE_NAME' AND table_schema = DATABASE();
开启远程访问权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY ‘!123456’ WITH GRANT OPTION; // 刷新权限 FLUSH PRIVILEGES;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mysql
#mysql
抓取 MySQL Table auto_increment 的最大值
直接由 information_schema 找 MySQL Table auto_increment 的最大值, 有下述兩種情況:
或下述:
use YOUR_DB_NAME; // 抓取自己現在的 Database name 可用: SELECT DATABASE();
开启权限
开启远程访问权限
The text was updated successfully, but these errors were encountered: