{"action":"created","issue":{"url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/134","repository_url":"https://api.github.com/repos/postlight/headless-wp-starter","labels_url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/134/comments","events_url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/134/events","html_url":"https://github.com/postlight/headless-wp-starter/issues/134","id":355869806,"node_id":"MDU6SXNzdWUzNTU4Njk4MDY=","number":134,"title":"Access denied for user 'root'@'localhost' - (WSL)","user":{"login":"Falkovic1993","id":31372909,"node_id":"MDQ6VXNlcjMxMzcyOTA5","avatar_url":"https://avatars1.githubusercontent.com/u/31372909?v=4","gravatar_id":"","url":"https://api.github.com/users/Falkovic1993","html_url":"https://github.com/Falkovic1993","followers_url":"https://api.github.com/users/Falkovic1993/followers","following_url":"https://api.github.com/users/Falkovic1993/following{/other_user}","gists_url":"https://api.github.com/users/Falkovic1993/gists{/gist_id}","starred_url":"https://api.github.com/users/Falkovic1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Falkovic1993/subscriptions","organizations_url":"https://api.github.com/users/Falkovic1993/orgs","repos_url":"https://api.github.com/users/Falkovic1993/repos","events_url":"https://api.github.com/users/Falkovic1993/events{/privacy}","received_events_url":"https://api.github.com/users/Falkovic1993/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-31T07:29:09Z","updated_at":"2018-11-10T18:10:42Z","closed_at":null,"author_association":"NONE","body":"Hey, \r\n\r\nI'm trying to set up the headless starter kit on my windows machine with the WSL. But i keep getting stuck when i run the yarn install command it gives me the following errors in the terminal. \r\n\r\n```\r\n`mysql: [Warning] Using a password on the command line interface can be insecure.\r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n\r\n [Exec]  Exit code 1  Time 0.571s\r\n [Exec] Running mysql -uroot -proot -h 0.0.0.0 -e 'create database if not exists wp_headless'\r\nmysql: [Warning] Using a password on the command line interface can be insecure.\r\n\r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n [Exec]  Exit code 1  Time 0.566s\r\n [Exec] Running mysql -uroot -proot -h 0.0.0.0 -e \"grant all privileges on wp_headless.* to wp_headless@localhost\"\r\n\r\nmysql: [Warning] Using a password on the command line interface can be insecure.\r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n\r\n [Exec]  Exit code 1  Time 0.557s\r\n [Exec] Running mysql -uroot -proot -h 0.0.0.0 -e 'flush privileges'\r\n\r\nmysql: [Warning] Using a password on the command line interface can be insecure.\r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\n\r\n [Exec]  Exit code 1  Time 0.623s\r\n [Exec] Running wp --allow-root core download --version=4.9.7 --locale=en_US --force in /mnt/c/projects/headless/wordpress\r\n\r\nDownloading WordPress 4.9.7 (en_US)...\r\nUsing cached file '/home/efk/.wp-cli/cache/core/wordpress-4.9.7-en_US.tar.gz'...\r\nSuccess: WordPress downloaded.\r\n\r\n [Exec] Done in 7.561s\r\n [Exec] Running rm wordpress/wp-config.php > /dev/null 2>&1 ||\r\n true\r\n [Exec] Done in 0.52s\r\n [Exec] Running wp --allow-root core config --dbname=wp_headless --dbuser=wp_headless --dbpass=wp_headless --dbhost=0.0.0.0 in /mnt/c/projects/headless/wordpress\r\n\r\nERROR 1045 (28000): Access denied for user 'wp_headless'@'localhost' (using password: YES)\r\n [Exec]  Exit code 1  Time 1.512s\r\n [Exec] Running wp --allow-root db drop --yes in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.797s\r\n\r\n [Exec] Running wp --allow-root db create in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.765s\r\n\r\n [Exec] Running wp --allow-root core install --url=localhost:8080 --title=\"Postlight Headless WP Starter\" --admin_user=\"nedstark\" --admin_password=\"winteriscoming\" --admin_email=\"nedstark@headlesswpstarter.dev\" --skip-email in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.775s\r\n\r\n [Exec] Running wp --allow-root theme activate postlight-headless-wp in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.778s\r\n\r\n [Exec] Running wp --allow-root theme delete twentyfourteen in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.782s\r\n\r\n [Exec] Running wp --allow-root theme delete twentyfifteen in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.771s\r\n\r\n [Exec] Running wp --allow-root theme delete twentysixteen in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 38.933s\r\n\r\n [Exec] Running wp --allow-root theme delete twentyseventeen in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.8s\r\n\r\n [Exec] Running wp --allow-root plugin delete akismet in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.766s\r\n\r\n [Exec] Running wp --allow-root plugin delete hello in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.784s\r\n\r\n [Exec] Running wp --allow-root plugin activate acf-to-wp-api advanced-custom-fields-pro akismet custom-post-type-ui wp-graphql wp-migrate-db-pro wp-migrate-db-pro-cli wp-migrate-db-pro-media-files wp-rest-api-v2-menus in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.753s\r\n\r\n [Exec] Running wp --allow-root acf sync in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.765s\r\n\r\n [Exec] Running wp --allow-root rewrite structure \"/%year%/%monthnum%/%day%/%postname%/\" in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.776s\r\n\r\n [Exec] Running wp --allow-root option update blogdescription \"Just another (headless) WordPress site by your friends at Postlight\" in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.745s\r\n\r\n [Exec] Running wp --allow-root post update 1 wp-content/themes/postlight-headless-wp/post-content/sample-post.txt --post_title=\"Sample Post\" --post_name=sample-post in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.75s\r\n\r\n [Exec] Running wp --allow-root post create wp-content/themes/postlight-headless-wp/post-content/welcome.txt --post_type=page --post_status=publish --post_name=welcome --post_title=\"Congratulations!\" in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.769s\r\n\r\n [Exec] Running wp --allow-root term update category 1 --name=\"Sample Category\" in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.758s\r\n\r\n [Exec] Running wp --allow-root menu create \"Header Menu\" in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.78s\r\n\r\n [Exec] Running wp --allow-root menu item add-post header-menu 1 in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.769s\r\n\r\n [Exec] Running wp --allow-root menu item add-post header-menu 2 in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.782s\r\n\r\n [Exec] Running wp --allow-root menu item add-term header-menu category 1 in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.902s\r\n\r\n [Exec] Running wp --allow-root menu item add-custom header-menu \"Read about the Starter Kit on Medium\" https://trackchanges.postlight.com/introducing-postlights-wordpress-react-starter-kit-a61e2633c48c in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 0.819s\r\n\r\n [Exec] Running wp --allow-root menu location assign header-menu header-menu in /mnt/c/projects/headless/wordpress\r\nError: 'wp-config.php' not found.\r\nEither create one manually or use `wp config create`.\r\n [Exec]  Exit code 1  Time 1.134s\r\n\r\n [OK] Great. You can now log into WordPress at: http://localhost:8080/wp-admin (nedstark/winteriscoming)\r\n\r\n\r\nDone in 101.52s.`\r\n```\r\n\r\nI've tried the different ways that you write in the readme to fix it but none seem to help. I didn't have mysql on my computer before i ran this so it seems wierd. \r\n\r\nDo you guys have any clue? \r\n\r\nThe install guide for windows is quite a pain and hard to figure out since it's only a few steps that's really explained. \r\n\r\nThanks for looking into it, and thanks for this awesome project. I hope i can get it up and running soon! :)"},"comment":{"url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/comments/437604220","html_url":"https://github.com/postlight/headless-wp-starter/issues/134#issuecomment-437604220","issue_url":"https://api.github.com/repos/postlight/headless-wp-starter/issues/134","id":437604220,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzYwNDIyMA==","user":{"login":"mitchellpalermo","id":20684298,"node_id":"MDQ6VXNlcjIwNjg0Mjk4","avatar_url":"https://avatars2.githubusercontent.com/u/20684298?v=4","gravatar_id":"","url":"https://api.github.com/users/mitchellpalermo","html_url":"https://github.com/mitchellpalermo","followers_url":"https://api.github.com/users/mitchellpalermo/followers","following_url":"https://api.github.com/users/mitchellpalermo/following{/other_user}","gists_url":"https://api.github.com/users/mitchellpalermo/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellpalermo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellpalermo/subscriptions","organizations_url":"https://api.github.com/users/mitchellpalermo/orgs","repos_url":"https://api.github.com/users/mitchellpalermo/repos","events_url":"https://api.github.com/users/mitchellpalermo/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellpalermo/received_events","type":"User","site_admin":false},"created_at":"2018-11-10T18:10:42Z","updated_at":"2018-11-10T18:10:42Z","author_association":"NONE","body":"I had to reinstall mysql with \r\n\r\n`brew reinstall mysql`\r\n\r\nAnd then I re-setup the username and password. After that I did `yarn install` from the wordpress directory and when it asked me if I had a database that I wanted to use, I selected yes. I left the default username the same and typed in the root password when prompted. After that it was a breeze."}}
{"actor":{"display_login":"mitchellpalermo"}}