{"id":19410,"date":"2014-02-26T18:01:11","date_gmt":"2014-02-26T10:01:11","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=19410"},"modified":"2024-08-16T19:54:10","modified_gmt":"2024-08-16T11:54:10","slug":"osx-apache-mysql-php-part-2","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/","title":{"rendered":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II"},"content":{"rendered":"<p>In the previous tutorial of this series, we <a href=\"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-1\/\">configured Apache and PHP<\/a>, enabling us to run <code>.php<\/code> files on our local server. As a follow-up, we will now <strong>install and set up MySQL<\/strong>, which will be used for the database.<\/p>\n<p>Let\u2019s get started.<\/p>\n<h2>MySQL Installer<\/h2>\n<p>Fortunately, MySQL comes with a <code>.pkg<\/code> installer that provides an easy step-by-step setup process. <a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\" rel=\"nofollow noopener\" target=\"_blank\">Download the package from this page<\/a>, and ensure you grab the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Apple_Disk_Image\" rel=\"nofollow noopener\" target=\"_blank\">DMG Archive version<\/a>. Choose either the <strong>Mac OS X 10.7 (x86, 64-bit), DMG Archive<\/strong> or <strong>Mac OS X 10.7 (x86, 32-bit), DMG Archive<\/strong> if you are running a 32-bit machine.<\/p>\n<p>Launch the DMG package, and you should find three files as shown in the screenshot below:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg\" width=\"500\" height=\"180\" alt=\"MySQL installer files for macOS\"><\/figure>\n<ol>\n<li><strong>mysql-5.6.15-OS X10.7-x86_64.pkg:<\/strong> The main package to install MySQL on macOS.<\/li>\n<li><strong>MySQL.prefPane:<\/strong> Adds a MySQL panel to System Preferences.<\/li>\n<li><strong>MySQLStartupItem.pkg:<\/strong> Enables MySQL to start at system startup or reboot.<\/li>\n<\/ol>\n<p>Install all three components. Once completed, open <a href=\"https:\/\/support.apple.com\/en-gb\/guide\/mac-help\/mh15217\/mac\" rel=\"nofollow noopener\" target=\"_blank\">System Preferences<\/a> and navigate to the MySQL pane.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/mysql-pane.jpg\" width=\"500\" height=\"100\" alt=\"MySQL panel in System Preferences\"><\/figure>\n<p>Turn on the MySQL Server and tick <strong>Automatically Start MySQL Server on Startup<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/mysql-running.jpg\" width=\"500\" height=\"250\" alt=\"MySQL server running on macOS\"><\/figure>\n<h3>Connecting PHP to MySQL<\/h3>\n<p>At this point, MySQL is running. However, macOS looks in a different directory for the MySQL socket, <code>mysql.sock<\/code>, which can result in the <strong>Warning: mysql_connect(): [2002] No such file or directory<\/strong> error when trying to connect PHP to MySQL.<\/p>\n<p>To fix this, we will create a symbolic link (<em>symlink<\/em>) in the directory where macOS expects to find the MySQL socket.<\/p>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Navigate to the <code>var<\/code> folder with <code>cd \/var<\/code>.<\/li>\n<li>Create a new directory named <code>mysql<\/code> using <code>mkdir mysql<\/code>.<\/li>\n<li>Create the symlink of <code>mysql.sock<\/code> using the command <code>ln -s \/tmp\/mysql.sock \/var\/mysql\/mysql.sock<\/code>.<\/li>\n<\/ol>\n<h3>Set MySQL Password<\/h3>\n<p>Next, we need to set a password for the <code>root<\/code> user. In Unix-based systems, the root user has full administrative access. To set the password, enter the following command in Terminal:<\/p>\n<pre>\r\nmysqladmin -u root password new_password\r\n<\/pre>\n<p>Replace \u201c<strong>new_password<\/strong>\u201d with a password of your choice.<\/p>\n<h2>Managing MySQL<\/h2>\n<p>Now, let\u2019s explore how to manage MySQL. While many opt for web-based tools like <a href=\"https:\/\/www.phpmyadmin.net\/\" rel=\"nofollow noopener\" target=\"_blank\">phpMyAdmin<\/a>, I prefer using a native macOS application named <strong><a href=\"https:\/\/www.sequelpro.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Sequel Pro<\/a><\/strong>. Download the installer, move it to the Applications folder, and launch it.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/sequel-pro.jpg\" width=\"500\" height=\"320\" alt=\"Sequel Pro interface for managing MySQL on macOS\"><\/figure>\n<p>In this tutorial, we\u2019ll connect to MySQL via the socket file. Navigate to the <strong>Socket<\/strong> tab in Sequel Pro and enter the following details:<\/p>\n<ol>\n<li><strong>Name:<\/strong> This can be anything; for example, <strong>macOS MySQL<\/strong>.<\/li>\n<li><strong>Username:<\/strong> Enter <strong>root<\/strong> as the MySQL username, as no other users have been created yet.<\/li>\n<li><strong>Password:<\/strong> Enter the password you set for the <strong>root<\/strong> user.<\/li>\n<li><strong>Database:<\/strong> Leave this blank since we haven\u2019t created any databases yet.<\/li>\n<li><strong>Socket:<\/strong> Set the socket path to <code>\/var\/mysql\/mysql.sock<\/code>.<\/li>\n<\/ol>\n<p>Click the <span class=\"key\">Connect<\/span> button.<\/p>\n<p>Once connected to MySQL, you can create, modify, and delete databases, as well as create new MySQL users. In the example below, I\u2019ve created a database named <strong>wordpress<\/strong> for my WordPress site.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/connected.jpg\" width=\"500\" height=\"320\" alt=\"Connected to MySQL database on macOS\"><\/figure>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we successfully configured MySQL on macOS. You now have a fully functioning local server for developing PHP-based websites. In the next and final part of this series, we will show you how to customize your localhost environment. Stay tuned!<\/p>","protected":false},"excerpt":{"rendered":"<p>In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now install and set up MySQL, which will be used for the database. Let\u2019s get started. MySQL Installer Fortunately, MySQL comes with a .pkg installer that provides an&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3400],"tags":[2987,4656,3933,254],"topic":[4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II - Hongkiat<\/title>\n<meta name=\"description\" content=\"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II\" \/>\n<meta property=\"og:description\" content=\"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-26T10:01:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-16T11:54:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\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:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II\",\"datePublished\":\"2014-02-26T10:01:11+00:00\",\"dateModified\":\"2024-08-16T11:54:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/\"},\"wordCount\":508,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/osx-apache-mysql-php-part-2\\\/installer-files.jpg\",\"keywords\":[\"Apache\",\"Localhost and Webserver\",\"macOS\",\"MySQL\"],\"articleSection\":[\"Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/\",\"name\":\"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/osx-apache-mysql-php-part-2\\\/installer-files.jpg\",\"datePublished\":\"2014-02-26T10:01:11+00:00\",\"dateModified\":\"2024-08-16T11:54:10+00:00\",\"description\":\"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/osx-apache-mysql-php-part-2\\\/installer-files.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/osx-apache-mysql-php-part-2\\\/installer-files.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/osx-apache-mysql-php-part-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II - Hongkiat","description":"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now","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:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II","og_description":"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now","og_url":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-02-26T10:01:11+00:00","article_modified_time":"2024-08-16T11:54:10+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II","datePublished":"2014-02-26T10:01:11+00:00","dateModified":"2024-08-16T11:54:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/"},"wordCount":508,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg","keywords":["Apache","Localhost and Webserver","macOS","MySQL"],"articleSection":["Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/","url":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/","name":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg","datePublished":"2014-02-26T10:01:11+00:00","dateModified":"2024-08-16T11:54:10+00:00","description":"In the previous tutorial of this series, we configured Apache and PHP, enabling us to run .php files on our local server. As a follow-up, we will now","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/osx-apache-mysql-php-part-2\/installer-files.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/osx-apache-mysql-php-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Setting Up PHP, Apache, and MySQL on macOS Without MAMP Part II"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-534","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=19410"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19410\/revisions"}],"predecessor-version":[{"id":72618,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19410\/revisions\/72618"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=19410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=19410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=19410"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=19410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}