InnoDB tables exist in MySQL but says they do not exist after copying database to new server

前端 未结 3 503
野趣味
野趣味 2020-12-30 13:52

I used mysqldump to export my database and then I imported it into MySQL on my other server. I can now see all my tables if I do \"show tables\" but I can\'t actually select

3条回答
  •  囚心锁ツ
    2020-12-30 14:26

    I my case it was SQLCA.DBParm parameter.

    I used SQLCA.DBParm = "Databse = "sle_database.text"" but it must be

    SQLCA.DBParm = "Database='" +sle_database.text+ "'"
    

    Explain : you are going to combine three strings :

    a) Database='               - "Database='"
    
    b) (name of the database)   - +sle_database.text+
    
    c) ' - "'"
    

提交回复
热议问题