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

Sqlite: missing host #135

Closed
geek-merlin opened this issue Apr 7, 2018 · 6 comments
Closed

Sqlite: missing host #135

geek-merlin opened this issue Apr 7, 2018 · 6 comments

Comments

@geek-merlin
Copy link

geek-merlin commented Apr 7, 2018

When i try to dump a sqlite db, i get

In Mysqldump.php line 251:                               
  Missing host from DSN string  

although the host is not needed for sqlite.

@ifsnop
Copy link
Owner

ifsnop commented Apr 7, 2018 via email

@Entomologen
Copy link

I had a similar issue with MariaDB. It turned out I had to put a port number into the DSN string for the connection to work. In my case:

$dsn = 'mysql:host=localhost;port=3306;dbname=' . DataBase::NAME;
$dump = new MySqlDump($dsn , DataBase::NAME , DataBase::PASS);

@bradjones1
Copy link
Contributor

Basically sqlite is only supported in theory - I am implementing some local integration testing for an internal project and started in on this to at least get data out. I don't think it would be particularly difficult to make this fully compatible. #184

@ifsnop
Copy link
Owner

ifsnop commented Jan 1, 2020

This is fantastic! I used mysqldump-php long ago for also dumping sqlite databases, but haven't had the time to sync it with all the changes that were done to the mysql part.

@ifsnop
Copy link
Owner

ifsnop commented Feb 9, 2023

Closing until a PR is made. Waiting for it to happen.

@ifsnop ifsnop closed this as completed Feb 9, 2023
@bradjones1
Copy link
Contributor

I'm no longer on the project where this was being used so I haven't returned to this.

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

No branches or pull requests

4 participants