LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-27-2015, 03:11 PM   #1
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Rep: Reputation: Disabled
jira <> mysql (manual debugging)


Trying to spawn up Atlassian JIRA on http://10.213.9.157:8080/ using Puppet's mySQL and JIRA modules. But right now, I'm trying to manually configure mySQL to debug this situation.
I'm getting "HTTP Status 500 - Could not determine database type. (Unknown database 'jiraDB')" plus
{
2015-05-27 11:43:13,618 http-bio-8080-exec-8 ERROR anonymous 703x6x1 - 10.213.9.217 /favicon.ico [NoModule] Could not determine database type.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'jiraDB'
2015-05-27 11:43:13,670 http-bio-8080-exec-8 ERROR anonymous 703x6x1 - 10.213.9.217 /favicon.ico [NoModule] Error getting datasource via DBCP
}
from /opt/jira/atlassian-jira-6.4.1-standalone/logs/catalina.out

So when I try these on mysql console, I get these errors even after taking out "skip-grant-tables"
(These are what I should be trying, right?)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jiraDB |
| mysql |
+--------------------+
3 rows in set (0.01 sec)
mysql> create user jira;
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
mysql> grant all on jiraDB.* to 'jira'@'10.213.9.157' identified by 'secret';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
mysql>

(Also asked this on ask-puppetlabs. But in case anyone here has a clue)
 
Old 05-27-2015, 04:17 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Why are you skipping grant tables?
If you are meaning to script/automate this process, (sorry, I don't know puppet)
Why not use
Code:
mysql -e "grant all on jiraDB.* to 'jira'@'10.213.9.157' identified by 'secret';"
There is no need to actually enter the mysql > environment for this.

Then test those same creds:
Code:
mysql -u jira -p<secret> -e "show databases;"
The only time in 10+ years in Linux, I only had to use skip-grant-tables is to recover a mysql root_user password.
Bad habit.

Last edited by Habitual; 05-27-2015 at 04:47 PM.
 
Old 05-27-2015, 05:24 PM   #3
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
right now dealing java issue.

Would you know the full path of Oracle JDK on CentOS?
(For java_home)

Thanks.
 
Old 05-28-2015, 10:36 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by sndlt View Post
right now dealing java issue.

Would you know the full path of Oracle JDK on CentOS?
(For java_home)

Thanks.
I do not, sorry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new pp for JIRA<>mySQL sndlt Linux - Server 0 05-20-2015 12:48 AM
could use some help in hiera for mysql/jira (puppet newb) sndlt Linux - Server 0 05-16-2015 09:51 PM
Puppet - JIRA module not connecting to mySQL sndlt Linux - Server 0 05-13-2015 12:45 AM
Latest Apache, MySQL, PHP (and modules) manual installation? riahc3 CentOS 3 04-26-2015 10:35 AM
Tomcat - JIRA issue linuxguy08 Linux - Server 1 11-23-2010 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration