helloise Posted February 17, 2012 Share Posted February 17, 2012 jenkins runs cibuild: ./createmysqldb test_traffic test_user password mysql -u test_user --password=password test_traffic < ./phoenix/data/sql/lib.model.schema.sql then createmysqldb: EXPECTED_ARGS=3 E_BADARGS=65 MYSQL=`which mysql` Q1="CREATE DATABASE IF NOT EXISTS $1;" Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';" Q3="FLUSH PRIVILEGES;" SQL="${Q1}${Q2}${Q3}" if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: $0 dbname dbuser dbpass" exit $E_BADARGS fi the console output in jenkins gives this: mysql -u test_user --password=password test_traffic < ./phoenix/data/sql/lib.model.schema.sql ERROR 1045 (28000): Access denied for user 'test_user'@'localhost' (using password: YES) why is this? i dont understand thanks Quote Link to comment Share on other sites More sharing options...
trq Posted February 17, 2012 Share Posted February 17, 2012 Because test_user does not have permission to access the server from localhost. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.