Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8134149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:54:44+00:00 2026-06-06T09:54:44+00:00

I want to establish a connection between my local machine and MySQL database server

  • 0

I want to establish a connection between my local machine and MySQL database server via Python.

Can someone tell me how to “bind-address with localhost”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:54:47+00:00Added an answer on June 6, 2026 at 9:54 am

    Can someone tell me how to "bind-address with localhost"?

    This is a MySQL configuration directive.

    Edit the global my.ini file, in the [mysqld] section:

    [mysqld]
    # -- various other settings
    port = 3306
    bind-address = 127.0.0.1
    # -- other settings
    

    Save this file, and then restart your server.

    Edit

    If you want to connect to your local Windows instance of MySQL, simply use 127.0.0.1 as the server’s address.

    If you want to connect to your remote server, the one running Linux then it is a bit complicated:

    1. First, make sure MySQL is listening on the public IP of the Linux server. Change the line bind-address = and set it to the public IP of your server.

    2. Make sure port 3306 isn’t blocked by any firewall.

    3. The user that you use to connect to the server needs to have rights to connect from a remote IP. By default, users are only given rights to connect from localhost – in other words they can only connect if the program is running on the same machine as the server itself.

    To grant a user access from a remote IP, run this command from the mysql> shell when logged in with the MySQL root user:

    GRANT ALL on somedb.* to someuser@8.8.8.8 identified by 'somepassword';

    If you want to grant access to someuser from any remote IP:

    GRANT ALL on somedb.* to someuser@% identified by 'somepassword';

    After those steps, make sure to restart the MySQL server so it will read the changes in the configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to establish a connection via Socket to a Server, while the phone
I'm testing Synapse and want to know how can I establish a secure connection.
My first issue: I am trying to establish connection to MySql database, but I
I want to establish socket connection to streaming server (with iphone ) and want
I have some java-app, and i want to establish a connection to some https
I am building DB class, in the constructor I want to establish the connection
I need to establish a Socket connection (TCP) between two hosts (say host1 and
I want to set up an FTP connection using a proxy server with Apache's
as topic, I want establish VPN connection in iPhone app, if it possible? but
I'm trying to establish a connection to a server that sends 401 Authentication Error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.