GithubHelp home page GithubHelp logo

Comments (6)

gravyboat avatar gravyboat commented on August 17, 2024

If there were no errors during the state run I'd suggest troubleshooting the server itself. Confirm the mysql server was started, that it's listening on the correct port, and that you don't have any firewall issues.

Edit: Also check the MySQL logs if you didn't already do so. 111 usually means connection refused, so good chance it's a firewall problem.

from mysql-formula.

jwilsonGFM avatar jwilsonGFM commented on August 17, 2024

I tried changing the hist to "localhost" now I get this error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Which is mysql login error. This implies that the root password is mapped to a different ip not %.

Im about to give up on the salt stuff, the instructions are basically written for people who dont need instructions. I just need mysql installed.

I have check the state ran with no errors, see below. The mysqld is running just cant talk to it.


      ID: mysql_debconf_utils
Function: pkg.installed
    Name: debconf-utils
  Result: True
 Comment: Package debconf-utils is already installed
 Started: 01:17:32.323827
Duration: 2.639 ms
 Changes:

      ID: mysql_debconf
Function: debconf.set
    Name: mysql-server
  Result: True
 Comment: Unchanged answers: mysql-server/start_on_boot
 Started: 01:17:32.327252
Duration: 356.895 ms
 Changes:
          ----------
          mysql-server/root_password:
              (password hidden)
          mysql-server/root_password_again:
              (password hidden)

      ID: mysqld
Function: pkg.installed
    Name: mysql-server
  Result: True
 Comment: Package mysql-server is already installed
 Started: 01:17:32.684853
Duration: 3.027 ms
 Changes:

      ID: mysql_config
Function: file.managed
    Name: /etc/mysql/my.cnf
  Result: True
 Comment: File /etc/mysql/my.cnf is in the correct state
 Started: 01:17:32.689027
Duration: 80.191 ms
 Changes:

      ID: mysql_additional_config
Function: file.managed
    Name: /usr/my.cnf
  Result: True
 Comment: File /usr/my.cnf is not present and is not set for creation
 Started: 01:17:32.769320
Duration: 0.297 ms
 Changes:

      ID: mysqld
Function: service.running
    Name: mysql
  Result: True
 Comment: The service mysql is already running
 Started: 01:17:32.770067
Duration: 20.418 ms
 Changes:

      ID: mysql_python
Function: pkg.installed
    Name: python-mysqldb
  Result: True
 Comment: Package python-mysqldb is already installed
 Started: 01:17:32.790632
Duration: 3.045 ms
 Changes:

Summary for ip-172-31-42-124.us-west-2.compute.internal

Succeeded: 38 (changed=1)

Failed: 0

Total states run: 38
Total run time: 833.918 ms

from mysql-formula.

gravyboat avatar gravyboat commented on August 17, 2024

You'll probably want to make sure the users are configured properly, sometimes there have to be multiple users for both the localhost connection and the % connection. Do you believe this is related to the way the formula operates, or how you have the users configured? It seems as though the formula itself is working.

from mysql-formula.

gravyboat avatar gravyboat commented on August 17, 2024

Did you get this figured out?

from mysql-formula.

jwilsonGFM avatar jwilsonGFM commented on August 17, 2024

Hello Forrest,
I wrote my own state to do this. I could never get any of the existing
states I found to work.

Jeff Wilson

On Mon, Nov 23, 2015 at 11:49 AM, Forrest [email protected] wrote:

Did you get this figured out?


Reply to this email directly or view it on GitHub
#103 (comment)
.

from mysql-formula.

gravyboat avatar gravyboat commented on August 17, 2024

Okay, if you have any changes to make to the formula feel free to put in a PR, I'm going to close this for now.

from mysql-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.