1

When connecting to a mysqldatabase, oftentimes you'll use --host=somehost. When creating a database locally using mySQL's Windows installer, how do you specify that? Is it possible?

I want to clarify that I want to be able to customize it - so, for instance, I want it to be something like "CUSTOMNAME-HOST" and not just "localhost"

Thanks.

0

1 Answer 1

2

This is possible by changing hosts file from your operating system.

If you are using windows operating system then Open your OS installation Directory then:Windows>System32>drivers>etc

Then open your hosts file and change it to 127.0.0.1 localhost to

127.0.0.1        CUSTOMNAME-HOST

Save it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.