Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySql portable version

anyone know a portable version of mysql?

I know xampp but it comes with PHP and Apache together

anyone know how to isolate the mysql?

like image 245
Leo Avatar asked Dec 05 '09 05:12

Leo


People also ask

Is MySQL database portable?

The first thing for having a MySQL portable version is that we can't use the MySQL installer (in this blog I already told you how to install MySQL 5.6 with the installer). This time, we downloaded the zip version. Before being able to start MySQL server, it is necessary to have a configuration file my.

Can I use MySQL without download?

But in the case of MySQL, we can use Run MySQL Without Installation in Windows (Portable MySQL). If you want to change your machine you can simply copy your portable MySQL from one machine to another machine.

Is MySQL 8.0 free?

MySQL Community Server 8.0.30 MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts.


1 Answers

You can download the MySQL Essentials version and make a few small changes to directories in the my.ini file to use relative paths instead of absolute paths. Then you can run the server directly without having to install or use a Windows service.

  1. Download a MySQL .zip file (instead of an .msi, though you could get the .msi and use 7Zip or Orca to extract the files from it).

  2. Extract the files. At a minimum you need the bin and share directories (actually, in bin, you really only need mysqld.exe as the absolute minimum to run a server).

  3. Edit my.ini to change the basedir and datadir paths to something relative. For example:

    basedir=".."
    datadir="/MySQLdb"
    
  4. If you do not have an existing database, then create one:

    mysqld --bootstrap
    
  5. Run the server (you may need to use the --skip-grant-tables switch to get it running until you have set up your MySQL user):

    mysqld
    
    • To avoid the server being run in the current command-prompt, you can use the following to have it run in its own console which should disappear once it is running:

      start mysqld
      
    • If you get errors, delete the log files (e.g., logs\ib_logfile*) and run it again.

like image 167
Synetech Avatar answered Oct 11 '22 14:10

Synetech