• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

wp-db-switch

Handles swapping out currently active database name value
huntlyc
0.1.1 56
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom WordPress Database Switch

STILL IN DEV/PERSONAL USE - DON'T USE!!!

(In reality, I should really be dockering it all...)

For the curious though...

Setup the path to your wp-config.php file in the settings and when pressing Ctrl+Alt+w it will read said config file compiling a list of database names.

Choose which one you want and it'll re-write the config file with that active.

For example, say, in your config file you have the following:

 
// ...other WP stuff
 
define('DB_NAME', 'db1'); //My first Database!!
// define('DB_NAME', 'db2'); //My first Database!!
// define('DB_NAME', 'db3'); //My first Database!!
 
// ...more other WP stuff
 

Press Ctrl+Alt+w select db3 and the config file will change to:

// ...other WP stuff
 
 
// define('DB_NAME', 'db1'); //My first Database!!
// define('DB_NAME', 'db2'); //My first Database!!
define('DB_NAME', 'db3'); //My first Database!!
 
// ...more other WP stuff

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by