Working on 2 pc - synchronization - mysql

I'm web developer and I use Apache installed on my PC. Recently I bought a new laptop. I would like to work on 2 computers. Usually, when I am at home, on PC, but sometimes, when I'im out on laptop.
I have a problem with synchronization of these 2 computers, specifically apache htdocs and mysql.
I was thinking about virtual machine but it is really complicated. My second idea was synchronization htadocs by dropbox, but it doesn't solve problem of mysql.
Did anyone has similar problem? What solution would be the best in your opinion?

Have you tried wamp?
http://www.wampserver.com/en/

for mysql synchronization simple solution is a dump. i use Sypex Dumper witch allow to create tasks and even call them through command line.
for files may be svn be a good one. (to not lost information when both edited files)

Related

Deploy Qt MySql Application

I'm working on Win10 64bit with Qt5.10.1, VS2017, MySql 8.0(64it). Everything is fine in my computer. After I deploy my application on other computers, a error message "Driver not load" pop up.
I have checked many forums including two posts in stackoverflow, [Qt][QMYSQL] Deployed app - Driver not loaded
Deploying qt mysql application
But it doesn't work for me. The following are the dll files in my folder:
qsqlmysql.dll is included in the folder sqldrivers.
All of the platform, software, SDK are 64 bit. can anyone help me? thanks.
Thanks everyone who answer my question. I tried many methods and almost give up. I never used MySQL before and this time I choose the newest MySql 8.0.12. I ignore the procedure and post the solution directly:
Beside libmysql.dll and qsqlmysql.dll, other two *.dll files are also necessary (but no solution I searched refers to them): libeay32.dll and ssleay32.dll, they are located at MySql/bin/. For my computer, they are contained in the system path, while for other computers that do not install MySql, they lack these two. Thus, we need to copy them to the package as well.
For anyone who encounter the same problem, for example using the newest MySql 8.0, you can try this method.

using which mysql_backup packages?

I have a DB program and I want to use mysql_backup that is from here:
http://mysqlbackupnet.codeplex.com
When you download the package,there is 3 folders: .Net 2, .Net 4 and .Net 4.5
Is there any difference that which package I use?
Although it's better to use .Net 2 because all my clients have Windows XP that .Net 4 has some crashes on it.
And if there is no difference, then why there is three packages?
thanks
What "DB program" do you have? I'll take a guess it's MySQL you're working with, but are you using something like Percona or MariaDB as a drop in? Also what flavor of linux are you running on? I only ask because perhaps there are easier/cleaner ways of doing what you are trying to do.
If you have root access to the server you are working with, then why not write a bash script to take care of backing up your databases. Going your own custom route might seem to daunting, but the upside is you get to control how your system backs up. You could get a cron job to make backups to a specific user folder, or even have backups sent to a remote Dropbox. I've got a system similar setup on my own VPS. Happy to help you out if I'm able.

wordpress development on linux and deployment to windows server

Will I have problems doing wordpress development on my linux laptop and then deploying the finished site to a windows server, i.e. will there be any code differences in the site code between linux and windows (the wordpress stuff) and/or problems between MySQL on the to differing platforms. Anybody done this before? ... any problems?
( I don't do development on a windows platform .. preference is linux and don't want to do the development on the production server ... or buy a windows machine)
Thanks,
Carl
There shouldn't be too many issues. Be wary of file-system access though -- there are a few differences. Look at this example from the PHP docs. Being a Linux user, you can probably see how this could cause problems, even with relative paths.
$handle = fopen("c:\\folder\\resource.txt", "r");
For the MySQL, I recommend writing a very simple request and just var_dump the results. Once you have that working, copy the settings to your WordPress config.
Depending on your server software, you could have some problematic differences. A major one is mod_rewrite which Apache has, and I make frequent use of. I think WordPress uses it too so URLs will look cleaner. When you go from Linux to Windows you may find 404 errors, or PHP errors surrounding this. Most Windows servers have an alternative so it depends on your server software.
If I notice anything else, I'll add it here.

Bundling MySQL with an application

There are alot of applications like MAMP, WAMP, etc. That come with a version of mysql that needs no installation and can be turned on and off easily. I am trying to create a web based application that will use a mysql database, where do you get mysql to bundle and how is it done so the user doesn't have to install it?
you can get it mysql
http://dev.mysql.com/downloads/
you can used php, ruby (rubyonrails) or java for developed application. in the case php install xampp.
MAMP, WAMP, etc. all have a bunch of configuration that is already set up for them. Essentially they've installed MySQL and everything else included under a single directory that doesn't rely on anything outside that directory and then zipped it up together. I'm not sure exactly what you're trying to do, but that really seems like overkill. May I suggest checking out sqlite? It's designed for bundling and embedding and will be quite a bit easier to deal with.
Are you truly creating a Web Based app or are you wanting to create a desktop application using web scripting languages?
If you are creating a web app, you shouldn't need to bundle MySQL since when you deploy to your hosting environment it should already be in place. If you truly need to package everything you'd be best off offering your software as a virtual machine appliance with the appropriate services already configured and running.
If you are creating a desktop app, that's a whole other issue.

Problems in Installing Pligg on localhost

I'm facing problem in installing Pligg on localhost(xampp). It seem to install successfully but does not login, as the page freezes. If anyone is familiar with this problem, please suggest me how to fix it. thanks.
Yes this problem is very very common. I similarly have this issue, even to this day. I've tried installation on Windows XP, Vista, and 7, all have failed.
The only way I'm able to work on Pligg is installing directly onto my hosting server. There I don't get any problems, go through the install process and access my site. Check out this quick google search as many of the top links from forums.pligg.com may offer a solution.
Unfortunately though, I haven't found one. To this day I still deploy my Pligg launches onto the server in a sandbox before going live.
I recommend using WAMP Server (Windows) or MAMP (Mac) for testing Pligg locally. I know for certain that both are working fine with the current version of Pligg CMS. I believe that I had some issues when I tried XAMPP years ago, so it may have some default setting that Pligg just doesn't agree with.