Installing Perl's mysql-dbd module without internet access - mysql

I need to be able to read/write to a mysql database using Perl. On all previous servers I have been able to use ppm-shell do download and configure the DBI module for mysql (mysql-dbd I think). However on one particular server, I don't have internet access.
Is there an easy way to get this installed? I'm on Windows 2008 Server by the way. I'm not brilliant at Perl either so if anyone can give some easy to understand instructions I'd really appreciate it
Thanks

Download the module from here http://cpan.uwinnipeg.ca/PPMPackages/10xx/
install via the command line:
ppm install filename.ppd

Get the module. ( this can help: http://win32.perl.org/wiki/index.php?title=PPM_Repositories)
and do: ppm install FILE.ppd

Related

Can't open MySQL Utilities

Trying to open MySQL Utilities in the MySQL Workbench and get the following error:
"The command line MySQL Utilities could not be located. To use them, you must download and install the utilities package for your system from www.mysql.com. Click on the Download button to proceed."
However, when I go to the address and download/install, this does not fix the issue.
How do I fix or get around this issue?
I'm running Windows 8.1 64-bit
in error the system is not able to recognize it (MySQL Utilities could not be located) and in default assumes thats Python has been installed and the whole library are developed with Python :
The library is written entirely in Python, meaning that it is not necessary to have any other tools or libraries installed to make it work. It is currently designed to work with Python v2.6 or later and there is no support (yet) for Python v3.1.
so if you don't have Python on your system just install and its should fix the problem.

using mysql in lua script

I need to read a database table from inside a Lua script in pdns-recursor on a Scientific Linux 6.4 server which comes with Lua pre-loaded.
Apparently I have to use luarocks to install luasql. When I attempt to install luasql I get:
Checking Lua includes... lua.h not found
lua.h is not on the server.
I tried removing the installed version so I could install from binary but then that trashed the system which apparently uses the installed Lua for everything (yum, rpm, etc). Now I have to reload OS. How can I get MySQL access from embedded Lua?
Thanks in advance.
I assume that you have already checked yum to see if luasql is available through that; if not, you should first do that, and install it through yum if possible.
The immediate cause of the problem you're having is that luarocks automatically builds modules from source, which requires access to the lua headers. These are not needed simply to run programs that use Lua, so they are not installed as part of the normal Lua package. I'm not familiar with Scientific Linux, but you can probably get them by installing a package named lua-dev, lua-devel, lua-headers, or some variant thereof. You may also need the mySQL packages (both the libraries proper and the headers). Once you have those installed, give it another try.
You might also try LuaDist, which I find to be generally more polished than luarocks, and capable of automatically downloading more dependencies; in particular it probably will not require the lua headers installed, and can handle automatically downloading and installing lua itself from source. It does, however, require CMake installed.
If for some reason you can't install the required headers and can't get luarocks or luadist working, you can try downloading and building luaSQL by hand. The Lua headers can be found in the Lua 5.1 source package and LuaSQL 2.2. Assuming the Scientific Linux maintainers haven't excessively customized the version of lua they ship with it, the results should be compatible with the system Lua install.

How to add MySql library into Code::Blocks/MinGW

I need to create a C program that requires a MySQL database. For this, I've seen on the web that I need to use a MySQL connector (which I installed in my PC). I run my code with Code::Blocks/mingw and I don't know how to add the mysql libraries to it.
To connect to a MySQL database I need the mysql.h file (I have the file but I don't know where to place it in my computer). Can you guys help me?
If you're using mingw, then from mingw installer you should find the support for MySQL library. If it doesn't appear there, then you can download the MySQL-devel source tarball and then compile and install it with mingw (you need GCC and other software building tools installed). In this way you'll get support of mysqllib support in mingw like GNU/Linux environment.

MySQL standalone or via XAMPP?

This is my first question ever at stackoverflow, hope I make sense out of it. I am starting to learn about databases and also programming these days. So I would want to get some advice on MySQL database. Though it's open source and available for download, Should I install the standalone MySQL GUI version on my laptop (Windows 7 32bit) or should I install XAMPP and then access it through phpMyAdmin ?? My purpose of asking this question is that , for starters..I am learning SQL and querying. And then I would want to learn to create web application using php or JavaEE.
I am completely unaware of these concepts, so I would appreciate if someone can just take few minutes and guide me accordingly.
Thanks !
Regards
and welcome :)
If you're planning on concentrating on PHP more than MySQL, it's a good start to install XAMPP. It's more lightweight and contains both PHP and Mysql. It's better for you to concentrate on learning the basics first, rather than spend time on software components. That's why I would choose XAMPP (or my personal favorite: WAMP Server)
If you'd like to spend a bit more time on database management such as user management, jobs,... it could be interesting to download the Mysql server package from their site.
Also, that package comes with example databases which you can use to learn some SELECT and UPDATE queries. It queries a lot easier that PHPMyAdmin.
If your goal is to use MySQL with self-made applications, get XAMPP and learn some PHP before diving into queries
And then I would want to learn to create web application using php
In this case XAMPP should be your friend. BTW with XAMPP you get an MySQL-Server which is identically with the MySQL standalone. You can fire your querys by using phpmyadmin, or connect via shell (console) or thridparty programms ....
In case that you are using NPM, you can install a standalone version of MySQL using the mysql-server package: https://www.npmjs.com/package/mysql-server

Install MySQL on Mac OS X Lion?

I have downloaded the MySQL community server and extracted the files from the .tar file. But how do I install it? I simply cannot find a easy way to to this, or any method for that matter. Or is it already installed after tar xvf MySQL.tar? And also, when installing the .pkg version, shouldn't it create the files anywhere? Finally, the community server is the one used with django right?
Thanks in advance!
I would suggest using the .dmg version. It's an easier way of installing mysql, it can be a pain http://dev.mysql.com/downloads/mysql/
If you are developing and testing, do you really need to use MySQL? You can use sqlite which is bundled with Python.
As Vezu suggested, the best way to get started with the server is to download the binary installer - the mysql-5.5.24-osx10.6-x86.dmg file.
If you plan to use it with Python, you will also need to install MySQLdb for OSX. For that, see this answer for a link to steps you need to follow.