0540.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Portable MySQL USB Flash Install Guide</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="MySQL,Database,Relational Database,Community Edition,USB,Flash Drive,Portable,Portable Software,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Portable MySQL USB Flash Install Guide">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/20/2022 12:21:09 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Portable MySQL USB Flash Install Guide</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Things You Will Need</h2>
  26. <ul>
  27. <li>A USB flash drive, at least 8 GB <a href="https://amzn.to/3wkR5ju" target="_blank">https://amzn.to/3wkR5ju</a> | <a href="https://amzn.to/3qkrJ1p" target="_blank">https://amzn.to/3qkrJ1p</a> | <a href="https://amzn.to/3Nhu9b9" target="_blank">https://amzn.to/3Nhu9b9</a></li>
  28. </ul>
  29. <ol>
  30. <li>Download MySQL Workbench <a href="https://dev.mysql.com/downloads/workbench/" target="_blank">Download</a></li>
  31. <li>Download the latest MySQL binary .zip <a href="https://dev.mysql.com/downloads/mysql/" target="_blank">Download</a></li>
  32. <li>Extract the downloaded .zip file</li>
  33. <li>Rename the extracted folder MySQL</li>
  34. <li>Cut the MySQL folder to the USB flash drive</li>
  35. <li>Navigate back to the folder with the MySQL Workbench .msi</li>
  36. <li>While holding Shift, right click in the whitespace &gt; Open PowerShell window here</li>
  37. <li>Run the following command in PowerShell to extract the .msi to the USB flash drive, update the drive letter as needed
  38. <div class="codeBlock PS">msiexec /a mysql-workbench-community-8.0.25-winx64.msi /qb TARGETDIR=H:\<br />
  39. exit</div>
  40. </li>
  41. <li>Navigate to the USB flash drive and create a new text file called MySQL.bat</li>
  42. <li>Paste the following contents into the .bat file
  43. <p>&quot;%~dp0MySQL\bin\mysqld.exe&quot; --standalone</p>
  44. </li>
  45. <li>Save MySQL.bat</li>
  46. <li>Navigate into \MySQL\bin on the USB flash drive</li>
  47. <li>While holding Shift, right click in the whitespace &gt; Open PowerShell window here</li>
  48. <li>Run the following command to initialize the MySQL server
  49. <div class="codeBlock PS">.\mysqld --initialize<br />
  50. exit</div>
  51. </li>
  52. <li>Find the .err file in the \MySQL\data directory and open it in a text editor</li>
  53. <li>Search for the phrase temporary password &gt; Copy the randomly generated password for the root account to the clipboard</li>
  54. <li>Right click MySQL.bat on the root of the USB flash drive &gt; Run as Administrator</li>
  55. <li>The MySQL server process is now running</li>
  56. <li>Navigate into \MySQL\MySQL Workbench 8.0 CE\ on the USB flash drive and launch MySQLWorkbench.exe</li>
  57. <li>Click the Plus icon next to MySQL Connections</li>
  58. <li>Enter a connection name (ie Portable MySQL) &gt; Click OK</li>
  59. <li>Double click the new connection</li>
  60. <li>Paste the password found in the .err file</li>
  61. <li>Enter and confirm a new root password</li>
  62. <li>The connection should be successful, click OK</li>
  63. <li>Welcome to a portable MySQL database instance with GUI</li>
  64. </ol>
  65. <p><em>To stop the MySQL instance, simply kill mysqld.exe by pressing CTRL+C in the open command prompt running MySQL.bat</em></p>
  66. <p><em>Additional server options for MySQL.bat <a href="https://dev.mysql.com/doc/refman/8.0/en/server-options.html" target="_blank">https://dev.mysql.com/doc/refman/8.0/en/server-options.html</a></em></p>
  67. </div>
  68. </div>
  69. </body>
  70. </html>