My situation is as follows. I have a remote database, which i can only access via ssh-tunnel. I promptly configured it as a Data Source
in PHPStorm
and everything works fine. However, i often need to operate moderately large tables (several millions of records), so simply copy-pasting INSERT
statements to add data doesn't work.
I tried googling it, search PhpStorm Help
, but there is no info at all. Perhaps, some plugin exists for such task, or is there another way of inserting data from files via PHPStorm
?
Add the sql file to your project files, right-click this file in the Project view and select "Run {filename}" You will then be asked to select the right database, on which the sql will execute.
Step by step guide to execute Mysql Script from PhpStrom
or any Jet Brain's intelligence IDE
1.Put your MySQL script file in current project directory.
2.Right click and select option Run_{fileName.sql}
from Context menu (Tip: you can also select multiple files if you want.)
3.Select appropriate Schema/database name in Target data source/Schema
4.click on Run button. After that execution of operations will going to start.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With