{"id":1629,"date":"2018-08-14T04:01:51","date_gmt":"2018-08-14T04:01:51","guid":{"rendered":"http:\/\/dbtut.com\/?p=1629"},"modified":"2018-11-09T22:55:18","modified_gmt":"2018-11-09T22:55:18","slug":"how-to-build-a-mysql-on-linux-quickly","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/","title":{"rendered":"How to build a MySQL on Linux quickly?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p class=\"\">This article introduces how to\u00a0build a MySQL on Linux quickly. This&#8217;s often used to build a\u00a0temporary MySQL for testing. In short, we only need three steps: check, download package, install.<\/p>\n<h2>First of all, check the disk space and the memory:<\/h2>\n<p>These pictures are from my virtual machine(It&#8217;s very similar with a physical machine).<\/p>\n<p>I will store the MySQL\u00a0installation\u00a0files on<b><i>\u00a0\/usr\/local\/mysql80<\/i><\/b>, and data files on\u00a0<b><i>\/data\/mysql8001.<\/i><\/b>\u00a0So look at the picture, the free space on\u00a0<b><i>&#8216;\/&#8217;<\/i><\/b>\u00a0 is enough for me.<\/p>\n<div class=\"image-package\">\n<figure style=\"width: 475px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"475\" height=\"95\" \/><figcaption class=\"wp-caption-text\">Disk status<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The remaining 2626 MB of memory is enough for me.\u00a0 In the\u00a0production environment, you should evaluate the required memory size and the disk size\u3002<\/p>\n<div class=\"image-package\">\n<figure style=\"width: 609px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-9c44399e0ba0e379.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"609\" height=\"68\" \/><figcaption class=\"wp-caption-text\">Memory status<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<h2><\/h2>\n<h2><\/h2>\n<h2>Second, prepare related directories and files<\/h2>\n<pre class=\"lang:default decode:true \">cd \/usr\/local<\/pre>\n<p>&nbsp;<\/p>\n<p>Download MySQL package:<\/p>\n<p>Open <a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\">https:\/\/dev.mysql.com\/downloads\/mysql\/<\/a> , and choose a suitable package.<\/p>\n<p>Check out the version of Linux:<\/p>\n<pre class=\"lang:default decode:true\">uname -a<\/pre>\n<div class=\"image-package\">\n<figure style=\"width: 687px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-c92b2411b45802ec.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"687\" height=\"26\" \/><figcaption class=\"wp-caption-text\">Linux version<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I download MySQL Community Server 8.0.12 this time, and you can also download a previous version by click the &#8220;<a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/5.7.html\" target=\"_blank\" rel=\"noopener\">Looking for previous GA versions?<\/a>&#8221;<\/p>\n<p>Choose\u00a0<em>mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz<\/em> to download(You can copy the download address or download to your computer and move to the server). Then click &#8220;Download&#8221;.<\/p>\n<div class=\"image-package\">\n<figure style=\"width: 697px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-e5b682a7b198d5b3.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"697\" height=\"415\" \/><figcaption class=\"wp-caption-text\">Download page<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Then click &#8220;<b><a href=\"https:\/\/dev.mysql.com\/get\/Downloads\/MySQL-8.0\/mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz\" target=\"_blank\" rel=\"noopener\">No thanks, just start my download.<\/a><\/b>&#8221; to download.<\/p>\n<div class=\"image-package\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-4ac670fe525ed1f6.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" width=\"700\" height=\"519\" \/><\/p>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>Also you can right click, choose &#8220;<em>Copy link address<\/em>&#8220;, then using\u00a0<b><i>wget\u00a0<\/i><\/b>COMMAND download it on your server:<\/p>\n<pre class=\"lang:default decode:true \">wget https:\/\/dev.mysql.com\/get\/Downloads\/MySQL-8.0\/mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz<\/pre>\n<p>&nbsp;<\/p>\n<p>After downloading, use the\u00a0<b><i>tar<\/i><\/b>\u00a0command to extract the package:<\/p>\n<pre class=\"lang:default decode:true\">tar -xf mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz\r\n\r\nmv\u00a0mv mysql-8.0.12-linux-glibc2.12-x86_64 \/usr\/local\/mysql80\r\n\r\ncd\u00a0\/usr\/local\/mysql80<\/pre>\n<div class=\"image-package\">\n<figure style=\"width: 572px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-93b058b87c1d5577.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"572\" height=\"67\" \/><figcaption class=\"wp-caption-text\">MySQL installation\u00a0files<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<div class=\"image-package\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-923e443598bdcfab.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" width=\"627\" height=\"197\" \/><\/p>\n<div class=\"image-caption\">\u00a0MySQL Installation Layout for Generic Unix\/Linux Binary Package<\/div>\n<div><\/div>\n<\/div>\n<h2>Third, Initialize MySQL service<\/h2>\n<p>We can find the\u00a0<b><i>mysqld<\/i><\/b>\u00a0binary file at\u00a0<b><i>.\/bin<\/i><\/b>, and for more help, using\u00a0<b>\u00a0.\/mysqld &#8211;verbose &#8211;help<\/b>\u00a0:<\/p>\n<div class=\"image-package\">\n<figure style=\"width: 700px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-c57c5040ce86153b.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"700\" height=\"280\" \/><figcaption class=\"wp-caption-text\">mysqld &#8211;verbose &#8211;help<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>For a easy installation, we can just use few options:<\/p>\n<pre class=\"lang:default decode:true \">.\/mysqld --datadir=\/data\/mysql8001 --basedir=\/usr\/local\/mysql80 --port=8001 --initialize --user=root<\/pre>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:20:53.780874Z 0 [Warning] [MY-011070] [Server] &#8216;Disabling symbolic links using &#8211;skip-symbolic-links (or equivalent) is the default. Consider not using this option as it&#8217; is deprecated and will be removed in a future release.<\/i><\/span><\/p>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:20:53.780924Z 0 [Warning] [MY-010143] [Server] Ignoring user change to &#8216;root&#8217; because the user was set to &#8216;mysql&#8217; earlier on the command line<\/i><\/span><\/p>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:20:53.780974Z 0 [System] [MY-013169] [Server] \/usr\/local\/mysql80\/bin\/mysqld (mysqld 8.0.12) initializing of server in progress as process 6281<\/i><\/span><\/p>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:20:59.265648Z 5 [Note] [MY-010454] [Server] <strong>A temporary password is generated for root@localhost: mqlbs9,&amp;sDkC<\/strong><\/i><\/span><\/p>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:21:00.738834Z 0 [System] [MY-013170] [Server] \/usr\/local\/mysql80\/bin\/mysqld (mysqld 8.0.12) initializing of server has completed<\/i><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Then we get a\u00a0temporary password from the above information.<\/p>\n<p>After initializing, we should start the MySQL server:<\/p>\n<pre class=\"lang:default decode:true\">.\/mysqld_safe --datadir=\/data\/mysql8001 --basedir=\/usr\/local\/mysql80 --port=8001 --log-error=\/tmp\/8001-err.log --socket=\/tmp\/mysql8001.sock --pid-file=\/data\/mysql8001\/mysql8001.pid --user=root &amp;<\/pre>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:23:30.977379Z mysqld_safe Logging to &#8216;\/tmp\/8001-err.log&#8217;.<\/i><\/span><\/p>\n<p><span style=\"font-size: 10pt;\"><i>2018-08-13T11:23:31.001444Z mysqld_safe Starting mysqld daemon with databases from \/data\/mysql8001<\/i><\/span><\/p>\n<p>Log in to server using the MySQL client:<\/p>\n<pre class=\"lang:default decode:true \">.\/mysql -uroot -p -S \/tmp\/mysql8001.sock -P8001<\/pre>\n<p>&nbsp;<\/p>\n<p>Paste the\u00a0<b>temporary password<\/b>\u00a0from the previous information:<\/p>\n<div class=\"image-package\">\n<figure style=\"width: 664px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-facdd402aee77744.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"\" width=\"664\" height=\"199\" \/><figcaption class=\"wp-caption-text\">MySQL Client<\/figcaption><\/figure>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>After logging in, the first thing is changing the password for &#8216;root@localhost&#8217;, and then creating related users. Otherwise, you can do nothing.<\/p>\n<pre class=\"lang:default decode:true \">mysql&gt; show databases;<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 10pt;\"><i>ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.<\/i><\/span><\/p>\n<pre class=\"lang:default decode:true\">mysql&gt; alter user 'root'@'localhost' identified by 'ws@passwd';<\/pre>\n<p><span style=\"font-size: 10pt;\"><em>Query OK, 0 rows affected (0.07 sec)<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Then, exit and reconnect with new password:<\/p>\n<div class=\"image-package\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"uploaded-img\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-13c82b4da806d460.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" width=\"681\" height=\"351\" \/><\/p>\n<div class=\"image-caption\"><\/div>\n<\/div>\n<p>Until now, MySQL server has been installed,\u00a0usually, we&#8217;d like to save the mysqld options on a file named my.cnf, and use <strong>&#8211;defaults-file<\/strong> for a simpler installation: <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/option-files.html\">https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/option-files.html<\/a><\/p>\n<p>There are many options of [mysqld], and these options\u00a0have different effects for the data safety, the performance and so on. You can find the details on the &#8220;<strong>Reference Manual<\/strong>&#8220;(<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/\">https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/<\/a>).<\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1629\" class=\"pvc_stats all  \" data-element-id=\"1629\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; This article introduces how to\u00a0build a MySQL on Linux quickly. This&#8217;s often used to build a\u00a0temporary MySQL for testing. In short, we only need three steps: check, download package, install. First of all, check the disk space and the memory: These pictures are from my virtual machine(It&#8217;s very similar with a physical machine). I &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1629\" class=\"pvc_stats all  \" data-element-id=\"1629\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":50,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[1398],"class_list":["post-1629","post","type-post","status-publish","format-standard","","category-mysql","tag-build-a-mysql"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to build a MySQL on Linux quickly? - Database Tutorials<\/title>\n<meta name=\"description\" content=\"This article introduce how to\u00a0build a MySQL on Linux quickly. This&#039;s often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to build a MySQL on Linux quickly? - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"This article introduce how to\u00a0build a MySQL on Linux quickly. This&#039;s often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-14T04:01:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-09T22:55:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" \/>\n<meta name=\"author\" content=\"Shuo Wang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shuo Wang\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\"},\"author\":{\"name\":\"Shuo Wang\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/83d7028b846c78bfd03244ec6cd04289\"},\"headline\":\"How to build a MySQL on Linux quickly?\",\"datePublished\":\"2018-08-14T04:01:51+00:00\",\"dateModified\":\"2018-11-09T22:55:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\"},\"wordCount\":673,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\",\"keywords\":[\"build a MySQL\"],\"articleSection\":[\"MySQL-MariaDB\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\",\"name\":\"How to build a MySQL on Linux quickly? - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\",\"datePublished\":\"2018-08-14T04:01:51+00:00\",\"dateModified\":\"2018-11-09T22:55:18+00:00\",\"description\":\"This article introduce how to\u00a0build a MySQL on Linux quickly. This's often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage\",\"url\":\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\",\"contentUrl\":\"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to build a MySQL on Linux quickly?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/83d7028b846c78bfd03244ec6cd04289\",\"name\":\"Shuo Wang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/da30aa3d0157ae5f1f853927f56b868cfb1d801888eb954768c471e5d41cdd87?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/da30aa3d0157ae5f1f853927f56b868cfb1d801888eb954768c471e5d41cdd87?s=96&d=mm&r=g\",\"caption\":\"Shuo Wang\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/shuowang\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to build a MySQL on Linux quickly? - Database Tutorials","description":"This article introduce how to\u00a0build a MySQL on Linux quickly. This's often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/","og_locale":"en_US","og_type":"article","og_title":"How to build a MySQL on Linux quickly? - Database Tutorials","og_description":"This article introduce how to\u00a0build a MySQL on Linux quickly. This's often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.","og_url":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/","og_site_name":"Database Tutorials","article_published_time":"2018-08-14T04:01:51+00:00","article_modified_time":"2018-11-09T22:55:18+00:00","og_image":[{"url":"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240","type":"","width":"","height":""}],"author":"Shuo Wang","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shuo Wang","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/"},"author":{"name":"Shuo Wang","@id":"https:\/\/dbtut.com\/#\/schema\/person\/83d7028b846c78bfd03244ec6cd04289"},"headline":"How to build a MySQL on Linux quickly?","datePublished":"2018-08-14T04:01:51+00:00","dateModified":"2018-11-09T22:55:18+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/"},"wordCount":673,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage"},"thumbnailUrl":"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240","keywords":["build a MySQL"],"articleSection":["MySQL-MariaDB"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/","url":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/","name":"How to build a MySQL on Linux quickly? - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage"},"thumbnailUrl":"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240","datePublished":"2018-08-14T04:01:51+00:00","dateModified":"2018-11-09T22:55:18+00:00","description":"This article introduce how to\u00a0build a MySQL on Linux quickly. This's often used to build a\u00a0temporary MySQL for testing. Shortly, we only need three steps: check, download package, install.","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#primaryimage","url":"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240","contentUrl":"https:\/\/upload-images.jianshu.io\/upload_images\/5441808-44ba498c84dd553a.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240"},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/14\/how-to-build-a-mysql-on-linux-quickly\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How to build a MySQL on Linux quickly?"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/83d7028b846c78bfd03244ec6cd04289","name":"Shuo Wang","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/da30aa3d0157ae5f1f853927f56b868cfb1d801888eb954768c471e5d41cdd87?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/da30aa3d0157ae5f1f853927f56b868cfb1d801888eb954768c471e5d41cdd87?s=96&d=mm&r=g","caption":"Shuo Wang"},"url":"https:\/\/dbtut.com\/index.php\/author\/shuowang\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/1629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=1629"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}