So I will start from the beginning, I took it upon myself to start a forum as one I used to visit daily disappeared, I wanted to keep in touch with the regulars, that was the basic premise behind doing the forum, I had hosting for a personal website, I figured it would be easy to add it to my hosting, which had worked fine for many years, given all it was doing was running a series of WordPress sites over the years.
I assumed it would be fine hosting a small forum, how wrong I was, my first issue was installing the forum, first choice was phpbb, that wouldn't install, after 5 tried and fruitless talks with their "tech department", I gave up on phpbb, I tried vanilla forums and one other, neither worked, someone recommended punbb, lightweight and simple.
I gave it a try, got further with it, I got to the part where you choose your db type, sql failed many times, so I settled on sqlite, it worked, forum install and I was up and running, for a few days/1 week it went pretty smooth, then I had connection errors, "this page cannot be displayed" etc, I can't remember them all, someone smarter than I suggested some proper hosting, something dedicated to this forum, so I went looking, read a few tutorials, all spoke of backing up the database, before moving, thiw is where I ran into my first big issue, I had a cloned forum installed[or so I thought] on my PC, went to back up my db and found it to be a little small, under 100kb.
I downloaded it anyway, imported it using phpmyadmin running on wampserver, it seemed to import fine, I soon realised none of my users were there, none of th eposts, nothing was, so I researched what I may have done wrong, watched many a youtube video on how to export a db using phpmyadmin with tables etc, I followed at leas 5 separate vidoes, none seemed to work, I folded and spoke to my hosts online chat, asked them to backup the db for me, they did with the exact same result, a sub 100kb sql file lacking any tables or only a few, it varied, I had them do this 3 times I think.
So I gave up for a week I think, I was stressed, I didn't get anywhere, in this time I spoke to a few people, I got a few suggestions, the most promising is that somehow my installed forum is writing/reading data from a database that isn't under my control, this seemed to be the most logical, as the forum works, but the 2 databases I see in MySQL under my control panel, desck4 I think it's called, iPage is the host I use just FYI, are either empty [the one I specified during the install of punbb] or the one I assume was created by pubb[for unknown reasons] which shows some basic info, but nothing after my initial setup, something which I don't understand is how is the forum running, if it's not writing data to either f these databases then it shouldn't function, right, so this theory makes sense, as it needs a db to work, I don't understand how it happened, but it makes sense, even to me, a complete dummy where this this stuff is concerned.
tldr; I have a forum, I can't backup db, I am confused, as are many I have asked for help, I don't know what's happening, I don't know what to ask my host for, they don't understand what I am asking, they are of no use until I can be specific in what I ask for, I came here seeking help from the massive knowledge base that is Stack Overflow.
So anything will be of help, how do I ask for help, can anyone explain in plain English for me and the host, I really want to do this myself, but it is so far beyond my current understanding.
Obviously this is in the too hard basket, I can't explain it, and so no one can actually get at what I want to do, so I won't even try and explaining it to the host, i've moved to a new host, everything is fine and dandy, sorry for not posting right, I saw how I was supposed to do it, but it made no sense to me, I am used to a more open kind of discussion.
TLDR; Issue ignored, I'm done with it.
Related
I know, it is a wide question, I just need some hints to solve it.
I wrote some kind of WebApp, using HTML, PHP, SQLSRV (MS SQL Server Express) to collect data from our daily visits at a hospital.
All works fine on my Laptop at home, you can add patients, view details, move them to an archive and so on. HomeEnvironment is PHP 5.6.3, MS-SQL Server 2012 Express. As soon as I copy my *.php - Files onto the network at my company, all screws up: dates aren't sorted right way, some queries work, some doesn't, Buttons disappear - and I have no clue, why this happens. It is - as far as I know - the same environment (besides "full" SQL Server 2012), PHP-Version is same.
I know you can't find a solution, but it would be great, if anyone could give me a hint, where to look for a mistake or where to start troubleshooting. Or if anyone experienced the same and could find a solution.
If any code is needed, feel free to ask!
Yes, as strange as it appears to be, due to an accident the entire site just blew away, including the wp-content, wp-include folders, etc. Only thing that remains with me is the mysql database through phpmyadmin. How can I retrieve posts, pages, etc from it?
I usually use the script installers for wordpress such as fantastico, etc. , not exactly familiar with detailed ftp procedure to install wordpress manually
Any help would be grateful.
Thanks in advance
As I said above, it is a case by case thing. Which version were you using? what were your plugins? were there any special directories? were there any special/custom bits of code? etc etc etc. If you didn't install yourself, that's all things someone would have to consider when recreating the installation and test for since auto-install scripts can install just about anything. It's a pain, but at least your content isn't completely lost.
So try following the database recovery linked in the comments, then install a new wordpress, then reinsert those recovered lines. After all, your question isn't really tailored for stack overflow, it might (and I'm not fully sure here) yeild more precise answers and be better suited for Server Fault.
Keep a full DB backup (untouched) somewhere, I have a feeling you may need to hire someone in the end if you cant get it back up yourself by just recreating a new WP and reinserting the data. It's just one of those things that sound simple to do, but it is very hard to explain because too much could go wrong. After all, you should have backed up your site automatically, every day. That way, it would already be restored.
Maybe you should try to make a new WP Website and install the plugins you used to have. And then replace the database tables by the ones you have saved.
These guys seem to offer a plugin that may be able to help you import a database into a new site easily.
WP Migrate DB Pro
It isn't a free plugin but if it saves you a lot of time and allows you to import your old database.
I'd do that first and then look at getting your old plugins reinstalled like the others mentioned.
Oke, i've been busting my head on this one.
I'm gonna try and keep things short, however, if you need more info, don't hesitate to ask.
I've written an import repo for an external firm, so we can import their data into our service.
quick overview of implemented logic?
ftp, grab xml file, parse it with simple_xml and do db stuff using laravel eloquent component.
on my dev machine,
every run gets parsed fully and all data is inserted correctly into the database.
problem
when i try the same thing on my production server.
I'm receiving a duplicate entry error, always on the same exact record. (unless i'm using another file)
pre script setup to help detect the error
on each run i do the following:
make sure i'm using the exact same files on both dev and prod
environment... (i've disabled the ftpgrab and uploaded manually to
the correct location)
truncate all the related tables so i'm always
starting with empty! tables.
i've manually triple-zillion checked for duplicates in the xml, but they're not in there.... and the fact that
my dev machine parses the file correctly confirms this.
what i tried
at this point, i've got no more clues as to how i'm supposed to debug this properly.
by now, i've checked so many things (most of them i can't even remember), all of which seemed pretty unrelated to me, but i had to try them.
those things include:
automatic disconnects due to browser
mysql wait timeouts
php script timeouts
memory settings
none of them seem to help (which was exactly what i was expecting)
another fact
my php version on my dev is 5.4.4 and the version on the production server is 5.3.2 (i know this is bad practise, but i'm not using any new features, it's really dead easy code, though it has quite a few lines :-) )
i've been suspecting this to be the cause, but
i've now switched to 5.3.14 on my dev... still the import runs without an issue
the changes from 5.3.2 to 5.3.14 are probably pretty minor
i've tried to manually compile the exact same php version, but i'm to inexperienced to properly do this. moreover, it probably wouldn't have the exact same specs anyway (i think it's pretty impossibly to ./configure exactly the same, considering the use of MacOs vs Ubuntu? especially for a noob like me)
So i've abandoned this path.
I've tried to find the differences in the php versions, but i can't seem to stumble upon anything that might be the cause to all this.
there was a change related to non-numeric keys in arrays (or strings for that matter) in version 5.4.4 (i think) but since i've now come to the conclusion that 5.3.14 also works, this definitely is not the issue. --- looking around insecurely hoping not having said anything downright stupid ---
quick thought while writing this:
the thing is, even though i'm getting the duplicate error statement.
The record did get inserted into the database.
moreover, the error gets triggered when having processed about 2700 (of total 6000) records.
the bound data to the query is actually the data of the second record in the xml file.)
I'm sincerely hoping anyone could put me on the right track for this issue :(
If you made it this far, but don't have a clue about what's going on, thx for reading and sticking to it.
If you might have clue, please enlighten me!
I recently moved my entire site to a new host. I had only minor issues getting my SMF board to work on the new host but I'm afraid I've reached my knowledge limit on getting my old, dusty Ikonboard (which uses a Berekely DB) to work. It's not a board we currently use but more of an archive.
In theory all I should've had to do was edit the server settings in a file called Boardinfo.cgi, which I did. I was still getting errors when I tried to access the board. So I contacted my new host and asked them if there was anything else they could think of that I needed to do to get it running. Their response was, in part:
It appears there are some issue with the version/software you are
trying to use. The environment Ikonboard is trying use Apache/1.3.27
(Unix) while the server currently uses Apache/2.2.25 (Unix).
Also when getting visiting
[http://OURSITE.com/cgi-bin/ikonboard.cgi] we are getting errors
for the PHP handler. We are not sure if Ikonboard is trying to use
"nobody" or another user to run. Which ever it is not correctly set up
for suPHP which is the current PHP handler.
As in [http://OURSITE.com/Install_Guide.html] we have chmod the
files to 755 and that is allowing the file to oad, but not
successfully run the code inside.
We have added in a php.ini to the public_html folder that will allow
you to adjust any php setting that may require it to run. However
looking into the code does fall out of the realms of our support. You
may try contacting Ikonboard to see if they can shed some light on
this issue.
I'm primarily a web/graphic designer and not a programmer so most of this doesn't make much sense to me (though I've had some success doing php edits on sites in the past). I did pose the question on the Ikonboard message boards but since Ikonboard is pretty much dead, their support boards are populated by a bunch of tumbleweeds blowing by. I'm willing to throw money at this issue, if it can be solved, but I thought I'd ask here before I do that.
Any ideas would be very much appreciated!
I am developing my first php-MySQL system, but have a minimum of database experience. I have successfully created a schema with aproximately 10 tables, and the testings have so far worked fine.
My problems started when i created a dump of the database, as copy for my laptop, so I could continue to test new web pages and new queries even when I am not at home, and still use a localhosted database.
I have successfully imported the dump, and created the schema in my workbench, and it is visible from the command-line prompt "show databases".
However, both my web application, and the command-line prompts are unable to locate the underlying tables. THe problem is at least not directly in my php-code, as it works perfectly on another computer, with another, but assumably identical localhosted database. I have researched the matter online for what feels like a decade, but without any relevant results.
Command-line prompts are able to find tables from every other schema, like the sakila examples. I have tried to compare the two's settings, but they all seem to be identical, for instance they are both InnoDB.
I realise that I am not giving enough information for a direct solution here, but I would greatly appreciate if anyone could hguide me to finding the right questions to ask, so I can solve this matter, and get on with my php-learning.
(SOLVED)
I discovered that the list of open tables had references to an additional Schema. I thereafter realised that I had installed the XAMPP bundle server before I installed MySQL Workbench. In other words, i already had an existing database, with all of the regular examples included in another instance, which were running on port 3306. It also happpened to have an identical, but empty scheme, of the name that I tried to access.
My newly added SQL installation was ported to 3307, and so I am now able to access it. THis issue was just one of several issues I have been able to work around, but they have all been caused by the same mistake. Thanks everyone for trying to help.