But now I have task of connecting mysql and tomcat. I dont have any idea on this. However I looked some manuals but did not find any luck. how to connect mysql with tomcat. btw I have downloaded mysql connector and copied the .jar file to $CATALINA_HOME/lib
I think this goes here, but I'm not sure. I decided that XAMPP had been troublesome enough. MySQL never worked. So I decided to instal the LAMP stack offered by YaST. I went about installing it thinking that it would all work. But it seems that I was wrong. So I try to start mysql, and here's what I get:
Code: the-matrix:~ # mysql start ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) or Code: the-matrix:~ # rcmysql start Starting service MySQL warning: /var/mysql/mysql.sock didn't appear within 30 seconds chmod: cannot access `/var/run/mysql/mysqld.pid': No such file or directory
I am getting the following error when starting mysql using 'sudo /etc/init.d/mysql start':
Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in Mar 15 16:33:56 MoodFishDev /etc/init.d/mysql[18317]: ^G/usr/bin/mysqladmin: connect to
i am using liferay5.2(mysql included in the download pack) on fedora. while liferay is working fine but i cannot connect to mysql.i am getting the error
[ [root@localhost ~]# ln -s /var/lib/mysql/mysql.sock /tmp [root@localhost ~]# /etc/init.d/mysqld start Timeout error occurred trying to start MySQL Daemon.
[code]....
i didnt find the mysql.sock file in the location /var/lib/mysql/mysql.sock. i cannot find the portal-ext.properties file also to make intial settings.
I am up and running. Symptom: webapp/servlet deployed to Tomcat, utilizes JDBC driver for MySQL connectivity. Upon launching application in browser and performing action requiring database interaction, exception thrown, server log:
I just installed FC12 x86_64. After a clean install I found that httpd, mysql, svn, svnadmin, etc are already installed. I still need to install and configure tomcat running as a worker behind httpd and configure everything. But my question is about security. What do I need to do to ensure that when I start httpd and mysql that they are secure? Are there default settings that I need to change? Are there security patches I need to apply?
System Config: Fedora Core 12 x86_64 AMD Athlon II X2 250 3.0 GHz dual core GIGABYTE GA-MA785GM-US2H G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model F2-8500CL5D-4GBPK
I am using liferay5.2 with tomcat 6. after installation of liferay5.2 i am unable to configure the datasource that points to the database mysql.without this liferay wont function. how to create a mail session in tomcat that points to the mail server. i am using fedora 6.
i'm in the process of migrating from Drupal 5 to Drupal 6. My main Drupal page won't load. I have been stepping through the index.php Eclipse and XDebug.The error I'm receiving is:"can't connect to local MySQL server through socket '/tmp/mysql.sock'".i think the sock file setting is correct; it matches what the MSQL control panel has.
First question: if my.cnf says the sock file is in /var/run/mysqld, why do I keep getting the error that it can't open /tmp/mysql.sock? How do I tell Drupal to use '/var/run/mysqld/mysqld.sock'? Second question: the mysql command-line interface (i.e., after i have logged into mysql from the terminal) doesn't mention a port from the listing obtained by entering 's'. is it possible that 3306 is a mistake? (I have tried commenting out the port reference and i still get the error identified at the top of the thread.)
does anyone have any ideas about how to resolve the 'sock' error? Many thanks if you do. Merry Christmas, too.
I get this error. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
So, I checked whether the file mysqld.sock is there in its respective folder, but I could not find that file. How to create the file and start mysql server.
I'm having problems connecting to the mysql database on my system. I first noticed this when I was trying to set up the program anymeal. I subsequently tried using MySQL Administrator (mysql-admin), but had no luck. It gives my the following feedback:
Code:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Click the 'Ping' button to see if there is a networking problem. I press the ping button, and it seems to connect.
I've downloaded and installed MySQL-client-5.1.53-1.glibc23.x86_64.rpm. I'm rather new to linux so it might be I haven't started the server. Unfortunately I have no idea which file is responsible for that. It is also possible that my head isn't functioning correctly ( if at all ).
Error I receive is:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I've been attempting to set up a LAMP for local web development, which meant installing mysql-server. But now have a problem when trying to run mysql, I get:-
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When trying to downgrade mysql-server I saw that there are dependency problems between the various modules (but can't recall which). But whichever route I truied the results are always the same.
Thought about trying XAMPP but I note that even has it's problems, is there any way I can get a lamp set up on FC14, or must I give it up as a bad job.
Howver, just been trying to again to fix the problems with downgrading mysql and get:-
I'm configuring a web server using Apache and Tomcat. I use Apache 2 and various instances of Tomcat5 and Tomcat6..I try that Apache serves the static data and tomcat the dynamic (Apache receives all requests, sending tomcat only the dynamic)I see that Apache and Tomcat can be connected using http or ajp Can any tell me: - What connector should I use: ajp, http,...? - How can I say Apache to serve the static data and Tomcat the dynamic?Due to I have many instances of Tomcat, connectins http and https, https with client certificates, and due to the port configuration: - Is there any way to configure Apache-tomcat without the use of ports in tomcat (a differect connector)?
I have just migrate from UBUNTU to Fedora 11. Tried to install cacti by 'yum install cacti' everything presumably went correctly. But when trying to get cacti running on a browser it's showing:
Code: FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php' Checked everything else including installing new mysqld-server (using yum install) and still not working.
Trying the installation steps from [URL], but could not find where mysql was installed. Mysqld should already be running, cos I can see it using webmin-server-mysql. Did a test as shown on [URL], everything seems ok. No major problem when using UBUNTU with apt-get install.
Right now I have Apache and Tomcat running on the same server. For reasons I won't go into I'm experimenting with putting Apache on a separate server, and installing Tomcat on multiple back-end servers. This isn't a load-balancing scenario as each Tomcat container on the back-end servers will be providing a separate application/responding to a different url. In a typical setup (everything on one box) the configuration file (we use workers.properties)sets what appears to be parameters such as the location of tomcat and Java. For example, here is the current output of workers.properties:Quote:
I wrote a code in C to connect to MySQL by using mysql_real_connect function but I recieved error "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" (by using mysql_error function).
I also did the following things: in mysql I typed 'SHOW VARIABLES LIKE '%SOCKET%'', it returned /var/lib/mysql/mysql.sock I typed 'mysql_config --socket' in shell, it returned /var/lib/mysql/mysql.sock I modified /etc/my.cnf file
I've setup a CentOS apache web server, and loaded a site onto it. The site previously was functioning under windows xp (before I "stepped in") and wamp. What I did was copy the site in /var/www, reconfigure the httpd.conf (DocumentRoot /var/www/site, etc). Although when I try to open the webpage I get this error: Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available.
I installed eclipse and tomcat with package manager. Eclipse and tomcat are running but i can't see tomcat in the eclipse. I just see 'Basic' folder. That is a screenshot [URL]
I'm trying to do a coursework at home which is a java web app. I've installed Tomcat and mySQL, both appear to be working fine. I have Netbeans installed already - from the Ubuntu Software Centre ages ago - when creating a new project it doesn't give an option for a web app project.... Is there some extra package(s) I have to install ?
I should have caught this during the upgrade, I saw the potential problem but failed to write it down. All my applications served by Tomcat fail to load. Catalina logs show the following error for each app. Error deploying configuration descriptor msgboard.xml The complete error for an individual application is
[Code]...
Again, during the upgrade a warning popped up that each app would need to be spelled out in some configuration file SOMEWHERE because of a change in security! Would someone be so kind as to direct me as to where and how this would be accomplished. I apologizes for not being able to find this out on my own but have looked and can't find it. I'm pretty sure anyone proficient with Tomcat on Linux will know what and where these changes need to be made. Or if anyone knows if and where there is a log of all communication during the upgrade I might be able to figure this out on my own. Is there such a log kept during an upgrade? Also if this question would be more appropriate in the Server Platforms forum I will do that.
i tried to install sun-java6-jdk through commandline ; but it failed after posting a license agreement from sun .
dpkg failed to install the package ;
then i tried to install from ubuntu software center Servlet and JSP engine Tomcat6
but it gave me an error :: An unhandlable error occured
There seems to be a programming error in aptdaemon, the software that allows you to install/remove software and to perform other package management related tasks. report this error at http://launchpad.net/aptdaemon/+filebug and retry.
Details: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 768, in simulate return self._simulate_helper(trans, status_path)
I am looking for some advice on the best way to connect to a MySQL database on a Ubuntu server via SSH. The application is built using VB6 and is installed on a Windows server.
I am in the process of installing a genome brower on an ubuntu 10.04 (lucid). I achieved to see the browser once. Then, the mysql.sock disappeared and to solve this I tried first, to reboot the server with no results. Then I removed and reinstalled the MySQL server installing mysql-server-5.1. Now, I have a socket and MySQL is running (checked these out) but when I try to see the browser that is what I obtain:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
I'm trying to run php scripts on Kubuntu 10.04 that connect to a MySQL database. These scripts run perfectly on OS X 10.6.6, but when I run them in Kubuntu, I get the following error: The script...
[Code]...
The error message: "Fatal error: Call to undefined function mysql_connect() in..." I've seen some posts in other boards about Red Hat problems like this, but nothing that can help with Kubuntu.
I'm using ubuntu 10.04 LTS I install mysql..Code: sudo apt-get install mysql-server.I set up my password and confirm,I type mysql at the terminal and i get this back.
I am trying to build a server on AWS using the latest Lucid image from Canonical. I load java and tomcat and when I deploy my webapp it runs fine except for when I try to upload files using commons fileupload. Then I get the following error.
ERROR : Jun 16, 2010 14:53:16 [CommonsLogger.java:27] : Unable to parse request org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. javax.servlet.context.tempdir/upload_2bd97087_129421bad1c__8000_00000000.tmp (No such file or directory)
the javax.servlet.context.tempdir points to /var/lib/tomcat6/work/Catalina/localhost/myapp which exists and to test I was able to create a new file there in my code.
This want happening with the karmic build of tomcat. as far as I know everything else is the same.