Skip to content
New issue

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

Error when one of the MySQL table on the server have a "." in it's name #248

Open
mtx-z opened this issue Dec 22, 2022 · 1 comment
Open

Comments

@mtx-z
Copy link

mtx-z commented Dec 22, 2022

Hello,

when running the command, this package scan all schemas in the MySQL server as explained in #146.
When one of those databases has a dot "." in its name, it failed:

My database name is "mywebsite.com". Renaming the database and removing the "." fixes the issue.

 vendor\laravel\framework\src\Illuminate\Database\Connection.php:414        
      PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.`com` WHERE Table_type="BASE TABLE"' at line 1")

  2   vendor\laravel\framework\src\Illuminate\Database\Connection.php:414
      PDO::prepare("SHOW FULL TABLES FROM `mywebsite`.`com` WHERE Table_type="BASE TABLE"")
@Fludem
Copy link

Fludem commented Jan 4, 2024

What is the importance of Wrap?: Schema 197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants