Comments (6)
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.
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.
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.
Did you get this figured out?
from mysql-formula.
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.
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)
- 'mysql_database.present' was not found in SLS HOT 3
- Two databases, two pillar files, one minion HOT 2
- Fix empty values in osfamilymap.yaml
- [BUG] RedHat/CentOS state apply with root password fails HOT 4
- [FEATURE] User access for columns HOT 1
- [BUG] Either don't check for my.cnf rights or remove it if symbolic link HOT 2
- [BUG] GRANT SELECT not working for only 1 user on 2 specific databases. Works on others HOT 4
- Specified SLS 'mysql' in environment 'base' is not available on the salt master
- [BUG] Server is installed when only Client is desired HOT 8
- [BUG] Setting mountpoint breaks tplroot HOT 2
- [BUG] Using mysql:host should not check for package/service
- [BUG] Centos 8 - python client for mysql missing HOT 5
- [BUG] Unable to connect to MySQL using CentOS 8 HOT 2
- Last Update BUG HOT 2
- [FEATURE] Use conf.d folder instead of main cnf file, if available on system
- [BUG] MySQL root password vulnerability and proposed fix HOT 1
- [BUG] root_password not set on debian bullseye HOT 1
- [BUG] mysql.client state does not work out of the box HOT 2
- [FEATURE] Please add support for Jammy HOT 1
- [BUG] Arrays being dumped into config file in invalid form.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-formula.