I'm a newbie in Liferay.
I downloaded Liferay Portal 6.2 CE GA1 bundled with JBoss 7. As my understand, it, by default, connects to HSQL database, how can I change the connection to MySQL?
When you start Liferay for the first time your browser will open with an installer. That installer lets you select a different DBMS. But you will need to create the database manually before you run the installer, this will not be done by Liferay:
Related
I am trying to install MYSQL Workbench but shows the error that says
Mysql workbench require the .net framework 4.5.2 to be installed.
But then when I download .net framework in my windows 8.1 it says
Microsoft .net framework is already a part of your system. You don't need to install the .net framework 4.5 redistributable.
So now please help me.
There are several ways to fix the issue:
1) Go to: https://dev.mysql.com/downloads/file/?id=480542
and update the MySQL INTALLER
to add Workbench 8.0
if that doesn't work
2) go to: https://dev.mysql.com/doc/refman/8.0/en/source-configuration-options.html
and look at possible resources to fix the issue,
3) Go to : Visual Studio and Modify by selecting
Desktop development C++
this will allow you to update the required software.
if all of these methods fail completely uninstall Visual Studio and MySQL and continue to restart computer.
Reinstall: https://dev.mysql.com/downloads/file/?id=480542
good luck.
This issue MySQL workbench caused because of .Net Framework 3.5 on Windows 8. Please install .Net Framework 3.5 on Windows first and then try MySQL workbench or follow these references
Follow Reference 1 or Reference 2
I am using mysql connection for a asp.net web application. So i installed mysql-connector-net-6.9.7.msi. Everything working fine for that project.
So I deployed that on web server and installed that mysql connector as well.
The application with MySQL connection works fine but other websites on web server are throwing error:
'Unable to connect to any of the specified MySQL hosts.'
(.net 4.0, EF 5.0)
Yourserver don't have 6.9.7 mysql connector , try installing 6.3.7 mysql connector on your server or use Entity framework 6
after two hours in internet i resolved this issue by removing sitemap section in machine.config file.
Thank you so much
I just have learned about IBM Worklight, and I was wondering of how to set up and configure MySQL database. I've set Worklight Adapter, but, I have no clue of how to make database with MySQL.
You should go through the IBM Worklight Getting Started training materials to properly familiarize yourself with IBM Worklight.
The steps to make a Worklight project work in conjunction with MySQL are as follows.
The Database:
Download and install MySQL (v5.1 or v5.5)
Download the MySQL Connector/J driver and keep it at the side for now
Download and install some software to interface with it. I recommend the Community edition of SQLYog.
Using SQLyog, create a new Database "Worklight"
Using SQLyog, create a new user "Worklight" (password "Worklight")
Worklight:
Download Eclipse Java EE 4.2.2 ("Juno" SR2)
Install Worklight Studio (the IBM Worklight Developer Edition Eclipse plug-in. You can search for it via Eclipse >> Help >> Marketplace >> "worklight")
Create a new project
In your project, place the Connector/J driver in yourProject\server\lib
In your project, open the worklight.properties file located at yourProject\server\conf and search for "mysql". Uncomment the following properties. Also edit them with the database, username and password values from above:
wl.db.type=MYSQL
wl.db.url=jdbc:mysql://localhost:3306/Worklight
wl.db.username=Worklight
wl.db.password=Worklight
If you now right-click the projcet and choose "Start Worklight Server", the server should launch successfully; if not, you did something wrong. :)
If the above works for you, you can now follow the MySQL adapter training module - follow the steps, and make sure to also configure the adapter XML with the database properties as requested in page 8.
I have installed Worklight Server and with DB2 database, and now I try to migrate an application that has a MySQL database which is obviously not working. Is there any workaround? Do I have to use an adapter to interface the DB2 and MySQL?
A database usually requires a connector driver in order to interface with it.
Had you used the IBM Installation Manager to install Worklight with DB2 database (available to IBM Worklight customers, are you one?), it would require you to supply such a driver, so I will assume - since you did not provide any information on your environment setup - that you are using the Development Edition (Eclipse + Worklight Studio plug-in).
In this case you need to edit the worklight.properties file (can be found in Eclipse under yourProject\server\conf).
Change the database type to DB2 (ucomment it) and supply the required information based on your environment.
The DB2 connector can be download through this page. Get the correct version for your installation of DB2.
Place the driver in the lib folder (can be found in Eclipse under yourProject\server).
If you are in fact using Liberty or WebSphere, see this troubleshooting section with installation instructions for DB2 and more.
Does any one know how to connect to MySQL 5.1 with Visual Studio 2010?
I have already tried the MySQL Connector/ODBC route and it got me really nasty results. The table rows were all listed as a view in the views section and nothing at all was listed in the tables or procedures folder.
To get the Entity Frame working with VS2010, I had to do the following:
This only worked with Mysql .net Connector v6.3.1 (alpha). Previous versions ignored VS 2010 (click Development Releases)
I had to rename my Framework\v1.1.4322\CONFIG folder. Otherwise the install will fail. Rename it back when finished
(I've blogged about this here)
Update
6.3.2 is in beta and I can confirm this works. (I didn't need to rename the framework folder)
this seems to solve the issue
UPDATED LINK TO LATEST RELEASE THANKS #Christian Payne
Update: looks like there is already a non-beta!!!!
http://www.mysql.com/downloads/connector/net/
As someone else suggests..
http://dev.mysql.com/downloads/mirror.php?id=382641
..fixes the problem.
I had v6.2.3 installed after I had vs2010 installed and the MySQL driver was not shown in the list of the Database Connect dialog. I wrongly assumed I should use the .NET ODBC drivers instead and it caused all sorts of problems. Although I could easily connect to the DB using codebehind, the server explorer wouldn't connect to the DB.
Luckily after uninstalling 6.2.3 and installing 6.3.0 (from the link above) the MySQL driver was added to VS2010, and I was able to connect to the database and see it in my server explorer.
http://bugs.mysql.com/bug.php?id=45122
I was able to get this to work by doing the following:
My Environment:
Development Box -- Win7 64bit,
VS2010 Pro
Deployment Box -- Win2k8 svr with IIS7
running ASP.NET .Net 2.0/3.0/3.5 sp which is
hosted at DiscountAsp.Net (Note:
DiscountAsp.Net does not provide a
MySQL DB when running on a Win2k8
svr, I'm using a MySQL DB that I connect
to elsewhere on the InterWebs)
Steps I took:
Installed MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d
Ref'd the .Net 2.0 version of the MySQL assembly in my ASP.NET MVC2 Web project set to target .Net 3.5 (the path for the MySQL assemblies I used was C:\Program Files (x86)\MySQL\MySQL Connector Net 6.3.6\Assemblies\v2.0)
I ref'd all 3 of the MySQL assemblies (MySql.Data.dll, MySql.Data.Entity.dll & MySql.Web.dll)
I marked each of those assemblies as "Copy Local=True" in my project (a.k.a bin deployment)
Added a MySQL DB connection string to my Project (using the MySQL provider)
Added an ADO.NET Entity Data Model to my project in VS2010 using the connections string
VS2010 took about 30 secs to chew thru my MySQL DB schema but then provided me with a beautiful GUI interface to tweak my MVC Models
Used the DB Entities in my MVC controllers
Deployed the app to my hosted server at DiscountAsp.Net
It works like a charm :)
Erm... through code? Or do you mean the server explorer add-in? Have you tried the latest (albeit GPL-ed) connector version for .NET from Mysql themselves? Again, it's GPL-ed so be aware of the consequences of using that for your own software.
Microsoft Visual Studio 2010 Beta 2 is busted for DDEX providers. They are auto promoting a VS 2008 assembly from 9.0 to 10.0 and it fails. The failure has to do with the fact that a .NET 2 assembly cannot load a .NET 4 assembly.
This worked in beta 1, so it is something they broke.
I even went back and tried the reference DDEX provider from the SDK. It won't load in VS 2010 beta 2 either. That tells me they have something that needs to be fixed.
When is the next beta?