SQL Server installation errors - sql-server-2008

I've been trying to install SQL Server 2008 R2 with tools.
I've downloaded thisn version and it just won't work!
I've had some problems installing Visual Studio SP1 due to silverlight4 being already installed, so I figured i needed to uninstall everything that had something to do with sql server, so I did.
Still the errors show up.
These 2 errors show up at the beginning of the installation during "Setup support files".
(I can't post more than 2 url's yet, so Ive put all the screenshots in 1 image, sorry)
Here
The first error is the top left one, and retry fails, and when I hit cancel a few secs later the second error pops up and the installation terminates.
My OS is W7 x64 with all updates installed.
I don't really know how to go on actually. I've searched for hours yesterday without any results.
Anybody got a clue? Before I reinstall every .net-related programs.
Thanks in advance!
Edit:
So far I've tried:
I checked if the first file shown in error 1 is actually there, and it is.
Tried to run the setup explicitly as administrator
I checked if the second file/folder was present, and it was not. So I manually created the folder and file, which then causes the
first error to say the same, but then it says can't create
\SqlSupport_Cpu64_1_ComponentUpdate_1.log, then I tried
to create an empty file with that name and extention. This makes the installer
append the filename with "_1". If I create that file too, it just
appends with a higher count.
Uninstalled every sql server related program (e.g sql server compact)
Reset all the permissions on the e: disk and formatted it.

I found the cause of the problem. Recently I'd set my default program files folder to my hdd, because my C: is a 60 GB SSD. The key is located in the register at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion. The keys "ProgramFilesDir" and "ProgramFilesDir (x86)" are the ones that need to be default ("C:\Program Files" and "C:\Program Files (x86)") in order for it to work.

Related

MySQL Workbench 8.0.28 hangs on launch (Window 10 Pro)

I have been using MySQL workbench for years. Recently the previous version 8.0.nnn stopped launching. I decided to try to repair the installation by upgrading. It worked for a few days and now it hangs again.
Uninstalling and reinstalling is not helping.
There are no notifications in event viewer. There is a task (process) in Task Viewer, but the process does not progress to showing a window.
I can connect to, and query, the server on the command line or via the API (not that it is required for launching Workbench).
Any ideas about origin of this rather perplexing problem?
I discovered that the user data (User\AppData\Roaming\MysSQL\Workbench) contained corrupted files.
The error message popup (window) remains hidden, but can be seen when using Alt-Tab to rotate between applications. One cannot bring focus on the error window, but one can see the message among the choices in the Alt-Tab interface. I could see something about corrupt file and that it was in the profile's Roaming.
Deletion of the single file that was indicated (wb_state.xml) was insufficient to get WorkBench to display. Deletion of all files in the Workbench directory restored Workbench.
Hope this is of some use to others.

mysqld won't start on fresh install on MacOS

I'm trying to get MySQL up and running for some analysis on my Mac.
MySQL version: 8.0.19
MacOS version: 10.14.6
The timeline is:
I installed MySQL successfully from https://dev.mysql.com/downloads/mysql/
It worked fine, I was able to create simple tables, etc. But when I tried to create my real schema, I realized that the default record size of 8k bytes wasn't enough; I had to increase it to the maximum, 65k bytes https://dev.mysql.com/doc/refman/8.0/en/column-count-limit.html#row-size-limits.
After reading the documentation, I learned that the row size can only be set when the database is initialized for the first time. So I wanted to start fresh, ensuring that when I first initialized the DB, the appropriate parameters were set.
So, I uninstalled MySQL using the widget in my Mac's Command Center. I rebooted, ensured no MySQL processes were running, then ran find -iname 'mysql' 2>/dev/null in the terminal, and found nothing. All traces, so far as I can tell, of MySQL were gone.
I downloaded the macOS 10.15 (x86, 64-bit), DMG Archive package again from https://dev.mysql.com/downloads/mysql/, installed it, used all the default settings in the installer, and then opened the MySQL widget from the Command Center again.
Here's where I configured the parameters. There's a place where I can put in a configuration file. So, following the advice in this How to workaround the row size limit of 66 KBytes, I created mysql.cnf in my home directory, put only these three lines in it, and put the filename in the box (checking the tickbox next to it):
innodb_page_size=64k
innodb_log_buffer_size=32M
innodb_buffer_pool_size=512M
I hit "apply". Then I went back to the other tab, hit "initialize database". No errors, seemed to work fine. Then I hit "start MySQL". The lights went briefly green, then red again. Multiple attempts, reboots, etc, don't seem to have any effect. In short, MySQL was trying to start up, but failing.
I also tried removing the mysql.cnf file, hitting "apply" and "initialize" again, and the problem is the same. I don't understand why this all worked before I uninstalled, but won't now.
I checked /var/log/system.log, and all I see is a bunch of lines noting the failure of MySQL to start:
but nowhere is the error from the application itself shown.
I did some Googling and SO'ing and looked in /usr/local/mysql/data/ as root, and I can see files that are in binary. But i do not know how to read these binary logs.
My questions:
How can I tell what error is preventing MySQL from starting?
How can I diagnose this issue? Is there a tool to read these binary files?
Does anyone know why MySQL would fail to start after a full wipe and re-install, though it was working in the first instance?
I experienced MySQL's failing to start from the System Preferences on Mac. It would turn green and red again. I also wiped and reinstalled a few times and it still wouldn't start.
In my case, I realized it was because I had AMPPS stack installed and its MySQL running at the same time. After turning off the MySQL in the AMPPS stack, I was able to start MySQL from the System Preferences successfully. Not sure if you had another software stack running that would cause the problem.

MySQL Workbench Data Export error. "Error executing task [Errno 2] No such file or directory"

I have a problem to export a small database using MySQL Workbench's Data Export function on Windows 10.
Previously I have had no problems exporting and importing databases, although after this happened I have changed the security of the server to legacy to get it working with phpMyAdmin using the MySQL Workbench Installer, which I have been unable to change back as when trying to execute the change I got an error stating the installer was unable to create the temporary user (running this as administrator didn't help).
Since then I have also updated MySQL Workbench, the server, and the rest of the components that were installed with it, which seems to have gotten rid of the MySQL Workbench Installer application, as such i am unable to provide the exact error it gave regarding being unable to create the temporary user.
I'm not 100% sure if the above is relevant to the issue but it does seem like it could be related.
The issue that I'm trying to fix is that MySQL Workbench will not export any (or all of) the databases I have set up to a self contained file. The error I keep getting is below:
09:47:47 Dumping va_form (all tables)
Error executing task [Errno 2] No such file or directory: u'D:\Mike\Desktop\Dump20190226.sql'
09:47:47 Export of D:\Mike\Desktop\Dump20190226.sql has finished
I was previously getting a similar error about access denied, which then lead me to change the default dump directory to my desktop, as I'm only going to need to dump files occasionally and sort and send them elsewhere straight away.
I have also tried disabling column-statistics and lock-tables although this has had no effect.
As you can see, at the start of the directory it's trying to dump to it says "u'D:\\" - I am not sure if this leading u is significant, although it is not there in the directory I have specified to dump the file to.
I'm hoping someone here has some insight into this issue, I have no idea why MySQL Workbench's installer was refusing to make the temporary user (even when being run as administrator) and why I cannot find the installer now, as well as the obvious problem of why MySQL workbench is unable to create the file to dump anywhere on the system.
Thanks very much for your time reading this.
It is probably an issue with a recent update of Windows Defender, not with MySQL.
Try to save your dump to folders located somewhere else than Desktop or Documents (I usually send them directly to a cloud service integrated with my OS). If this works, you just need to add an exception for MySQL in Windows Defender.

How do i get MS EXCEL to Connect to MYSQL Database

How Can i get Microsoft Excel 2010 to Connect to MYSQL Server (5.6.12)
I installed MYSQL as a WAMP installation
Windows 7 Ultimate 64bit
MYSQL 5.6.12
Apache 2.4.4
PHP 5.4.16
this should be straight forward, but i've obviously missed something
Now.. When i open Excel 2010
i then go to "Data"
i then go to "From Other Sources"
i then select "From SQL Server"
I'm then presented with the Data Connection Wizard
I have the Log on Credentials (that's not an issue)
I'm Logging on with "Use the following User Name and Password"
i require the SERVER NAME
but i keep getting this error
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
I understand the concept of what needs to happen, that being, i need to specify the connection path of MYSQL to Excel
Now.. so far i have done this...
Ensured that the WAMP Server was ONLINE and the Service was STARTED
obviously the default server is localhost that does not work, but then again on my machine that only brings up the WAMP page (so that's Understandable)
i usually access MYSQL via PhpMyAdmin the URL for the Login page is
http://localhost/phpmyadmin/
i tried entering that (that doesn't work either, but then again, i understand that is only the front end)
so..
i tried typing in MYSQL , mysql , MYSQL5.6.12 , mysql/mysql5.6.12
none of that worked
the MYSQL install path is
C:\WAMP\bin\mysql\mysql5.6.12
so.. Logically if i gave that to Excel, it should find it, But it didn't
I researched the Net and everything Either says Use the Wizard , but doesn't go into detail on the Server Name, one place said to install Microsoft Connector, I have done so.. it didnt' help
I have tried the Server Name as localhost , http://localhost , 127.0.0.1 didn't work
Using MYSQL CLI i entered "status;" and used the connection name localhost via TCP/IP didn't work
i went into MYSQL buddy and i found this
You are connected to MySQL 5.6.12 with the user Martin.Kuliza#localhost.
i tried this also, didn't work
i noticed the URL on the command line title as being
C:\Windows\System32\cmd.exe - C:\wamp\bin\mysql\mysql5.6.12.bin\mysql.exe -u
i entered all this... didn't work
i entered the part Starting from C:\wamp.... Didn't work
I've tried entering wamp, WAMP, Apache, APACHE, apache
I've tried dozens of combinations
I've tried finding the config file for connector in case that had something to do with it (couldn't find it)
i've tried looking at the config.inc.php file for clues,
I'm stuck and need some help (for this seemingly simple problem)
it's just a Connection Wizard and i'm honestly gobsmacked that i actually need to ask the forum for help, but, Sadly i do
Have you done this?
http://office.microsoft.com/en-001/excel-help/connect-to-a-mysql-database-HA104019820.aspx
Before you can connect to a MySQL database, you need the MySQL
Connector on your computer. To install the MySQL Connector
(Connector/Net), go to http://go.microsoft.com/fwlink/?LinkId=278885
and download Connector/Net 6.6.5 for Microsoft Windows. The driver
bit-ness needs to match the Microsoft Power Query for Excel add-in
installation (32-bit or 64-bit).
I FOUND A SOLUTION...
Kudos to HongTAT for keeping me on the right path....
(Even though i did do all the initial stuff that you posted, before i actually posted the question, The Act of you Posting it, Got me Looking at it a little deeper...
One thing led to another and i found the solution... Thank you
i suspect some sort of incompatibility issue must have been at fault here
i noticed that Power Query 64 bit would not install on my 64bit system
instead Power Query installer provided an Error that simply stated to the effect of:
since office is 32bit you can't install 64bit Power Query
but, i did install Connector/ODBC and Connector/Net as 64bit
perhaps there was something in that configuration that didn't mesh well with each other.
Also, Aparently "bit-ness" is a confusing term that is supposed to mean ( Ensure that that bit instruction set of the of the ODBC Connector Matches the bit instruction set of Power Query in Excel)
In actual fact you don't need Power Query or Visual Studio for that matter
However i can see the benefit of power Query, at this stage
WHAT I DID...
I uninstalled all traces of Microsoft Visual Studio from Add/Remove Programs
I Uninstalled all Traces of Visual C++ Redistributable from Add/Remove Programs
I Uninstalled Power Query from Add/Remove Programs
I Uninstalled MYSQL Connector/ODBC from Add/Remove Programs
I Uninstalled MYSQL Connector/Net from Add/Remove Programs
i left the WAMP Installation and MYSQL Intact
i conducted a Windows Update
i restarted the system
i then downloaded the following and installed it
http://dev.mysql.com/downloads/file.php?id=450946
Now.. Even though this Package installation is the same thing as installing it 1 by 1
i found that by doing a "CUSTOM INSTALLATION"
and installing all products EXCEPT FOR MYSQL SERVER
i was able to connect via the connector/net to the MYSQL Database right away
LASTLY i installed Power Query for Excel (since that was the whole point to begin with)
and this time it connected right away and Worked Perfectly
the Server Name was localhost
as i suspected
and the credentials were correct as i suspected
the only thing was that i had to set it up without Encryption of password
i got a message saying something like My Version of Office did not support encryption
or something to that effect
but, i connected without encryption and it worked perfectly
PROBLEM SOLVED
I NOW DEEM THIS QUESTION TO BE RESOLVED
THANKYOU TO HongTat
Did you try googling this before you posted your question? Because if you spent at least 10 seconds searching the internet, you would have found the answer to your question.
http://office.microsoft.com/en-us/excel-help/connect-to-a-mysql-database-HA104019820.aspx

Reporting Services Install/Uninstall Fails "Input String..."

I have done my best to install a copy of SQL Server 2008, but have discovered my "Reporting Services" installation has failed.
Furthermore, when I attempt to "repair" both the installation (and the "Shared Components" only, per a work-around I found here, will update with link if I find it) I have no had any success, as the SQL Server 2008 SP1 Patch reports that there are issues with my server's previous installation.
When I follow the procedure to complete uninstall SQL Server 2008 for a clean install (following instructions such as removing all components via the control panel "Uninstall") I also recieve errors, and when I attempt to re-run the installer I find that the instance I previously attempted to remove still exists: "MSSQL10" for example (see screen shot), and "RS" is listed as it's components, leading me to believe that the uninstall is failing because of this "RS" issue!
I have redownloaded the installer media, and tried to re-running it, and get the same issues when I choose a new name for an instances, and try "adding" features to the one I CANNOT seem uninstall! Any advice would be very helpful, my goal is to uninstall all instances of SQL Server 2008, start fresh, and apply the SP1 patch.
Thanks. I have attached log file, and screen shot. Computer information: Windows 7 Pro.
HP G60
Some error messages:
TITLE: SQL Server Setup failure.
Input string was not incorrect format.
I have pictures but not enough "reputation" to post them )-8
I experienced this problem as well - someone suggests it is corrupted Perfmon counters:
I found this ( http://social.technet.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/c9cb944d-6264-4530-9e00-ee92da3e939f/ ):
================================
Got this one figured out. The performance counters were corrupted. You can see this by opening perfmon and noticing a bunch of numbers instead of the actual counters themselves.
In order to fix (or you might want to check before you install), run:
c:\windows\system32\lodctr /R
This will reload the performance counters
This worked.