Special characters not supported on Windows username/password

Using Windows 10 ver. 2004 whenever I install LOCAL and try to create a new local site I get an error message: initialize-insecure

Also mysqld can not create directory (OS err no 2 - No such file or directory).

It can be due to the spanish letter “ñ” which is in my root because my name is “Iñigo”: I also get the message “The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead”.

I suggest that using the “ñ” should NOT be a problem because there are many different languages out there with special character sets and Local should work with all of them.

Is it me or is it the program? Anybody can Help? Thank you in advance.

Hey @ICP – Welcome to the community! I’ve moved the post to this topic since it’s a known issue.

You should be able to get an idea of a workaround by reading the summary at the top of this topic.

Hi,
I recently installed the Local 5.7.2 and when I create a New Site I get this message error: Uh-oh! Unable to provision site. Error: Error: Command failed:…, here I put the print screen of this error. By the way, I have Kaspersky Antivirus, but I closed it before installing Local. Can you please tell me what I am doing wrong, in order to create a new site, please?, thanks a lot.
Regards
Sofia Perez
ECUADOR

Hey @sofia.perez – Thanks for joining the Local forums and writing in! Since this is a known bug, I’ve merged your topic into this one. You should be able to review this topic’s description and upvote the bug as well as find a work around:

Than you Ben. Windows has this problems. And many more. The virtual Linux machine is just for coding. So what I will do is something different. I have tried using Ubuntu with a USB (https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview) and it works. In some days I will install Ubuntu in my PC (two operative alternative systems, i.e. without unistalling Windows) and install Local version for Linux. Done. No Windows. Thanks anyway. I´ll tell you and the community how it runs. Not done yet. Iñigo.

1 Like

A post was split to a new topic: Unable to Provision site with MySQL error

Bonjour,
J’ai le même problème, lors de la création d’un site.
L’erreur ci-dessous s’affiche dans une fenêtre Popup.
Impossible de provisionner le site
Je vous joins également le fichier local-lightning.log
local-lightning.log (35.9 KB)

Summary

This text will be hidden

Summary

This text will be hidden

Hey @Dede – Thanks for joining the Local forums and writing in! Since this is a known bug, I’ve merged your topic into this one. You should be able to review this topic’s description and upvote the bug as well as find a work around:

I got something that worked for me guys!
I right-clicked on Local shortcut on Desktop, went to Properties > Security > Edit
and then I granted all permissions to my user and that was it. Hope it helps.

Are you sure that doing this fixed the issue of the computer’s username having special characters in it?

I’m having trouble visualizing how granting additional permissions to the Local desktop would help with this bug.

Hello,

I think I still have the error described here with special characters. Can you confirm that this is not yet solved ?

We haven’t released any fix for this and due to how low-level this is, there’s not much we can do about it at this time.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

I know that this is a very old thread and is something that is unresolved in Local.

We’re trying to update and streamline our communication around bug reporting and fixing issues in Local. Because of this, I’ve moved this topic into the “Bugs” category which allows it to be up-voted.

If this is a problem that affects you, please up-vote this topic by clicking the “Vote” button at the top of the page.

Creating the account with no special characters fixed it on Win 11 20000.318
Thank you

1 Like

Hello,
It has been two years since this bug was reported, any news on the issue? It is quite annoying…
Thanks,

1 Like

Site creation fails when there are certain special characters (at least ampersand “&” seems to be one of those characters, might be others as well) in the admin password defined during the setup process. I believe the characters should be escaped properly (by Local) to allow the use of strong passwords as they are completely valid when setting up a WP site normally outside Local automatic setup.

You can finish the setup after the error message by going to your .local URL and continuing the setup manually. You can even use the same Local-breaking password you first used when trying to set up the site and WP will have no problem using it.

Steps to reproduce

  • Add a new site
  • When asked, insert an admin password with special characters like ampersand (&), possibly also single quote (’) and backtick (`)

Environment Info

  • Windows 10 21H2 (19044.1766)
  • nginx, PHP 7.4.1, MySQL 8.0.16
  • Local 6.4.0+5927 (but this has been a bug for quite some time now)

Hello there, @ooksanen! :wave:

I followed your steps and was not able to reproduce what you are experiencing.

Local is now on 6.4.1 - have you tried updating? You can find the latest release here:

Let me know if that helps!

Sam :woman_technologist:t3:

Hi @sambrockway and thanks for your reply!

Unfortunately the problem persists even on 6.4.1. I tried to create a new site with following info:

Site name: Test
Local site domain: test.local (default)
Local site path: ~\Local Sites\test (default)
Enviroment: Preferred (same as in my original post)
WordPress username: admintest
WordPress password: 123& (tried with 123&456 too, just to be sure)
WordPress e-mail: dev-email@flywheel.local (default)
Multisite?: No (default)

And the end result was the same, an “Error Installing WordPress for [Site name]”:

I tried some other special characters too, like backtick and single quote which I suspected might interfere with SQL commands if not properly escaped, but those seemed to work fine so it seems that only “&” breaks the installation.

EDIT: For clarification, OS, PHP, MySQL etc. were all the same in my last test as in my original post, except for Local, which I updated to 6.4.1 as per your suggestion.

If I remove the ampersand from admin password, install finishes correctly with all the other info being the same.

1 Like