有外键的主键设置自增。

set foreign_key_checks = 0;
ALTER TABLE `<table>` MODIFY COLUMN `id` int(11) NOT NULL AUTO_INCREMENT FIRST;

创建数据库,创建新用户,超级用户给新用户赋权

create database dbName;
create user userName@'%' identified by 'userPassword';      #创建新用户 
grant all privileges on dbName.* to userName@'%';          #这个给用户的权限已经很高了

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-02-07
  • 2021-12-22
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案